This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: IAR workbench post-build action error

Part Number: CC2640R2F

Hi,

I use simplelink_cc2640r2_sdk_2_40_00_32, xdctools_3_51_01_18_core and the recommended IAR Embedded Workbench for ARM 8.20.2.14838 with IAR Embedded Workbench shared components 8.0.13.5197.

What I have done is the following:

  1. I loaded simple_peripheral_oad_offchip example from the blestack->simple_peripheral_oad_offchip location in simplelink_cc2640r2_sdk_2_40_00_32.
  2. NOTE that I have made no changes at all
  3. I built cc2640r2lp_bin_offchip - FlashOnly: successful
  4. I built cc2640r2lp_stack - FlashROM: successful
  5. I built cc2640r2lp_app - FlashROM: successful
  6. I want to load the images into LAUNCHXL - CC2640R2 and I have it connected via USB
  7. I activate cc2640r2lp_bin_offchip - FlashOnly in the workspace and go to Project->Download->Download active application: this seems to be successful
  8. I activate cc2640r2lp_stack - FlashROM in the workspace, but this project now needs a rebuild, but when rebuilding I get the following error when it performs the Post-Build Action:

    Error while running cmd /C "C:\ti\simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip\tirtos\iar\stack\..\..\..\..\..\..\..\..\tools\blestack\frontier\frontier.exe iar C:\ti\
    simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip\tirtos\iar\stack\FlashROM\List\sp_oad_offchip_cc2640r2lp_stack_FlashROM.map C:\ti\
    simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip\tirtos\iar\stack\..\config\iar_boundary.bdef C:\ti\simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\
    CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip\tirtos\iar\stack\..\config\iar_boundary.xcl & C:\ti\simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip\
    tirtos\iar\stack\..\..\..\..\..\..\..\..\tools\blestack\oad\oad_image_tool.exe --verbose iar C:\ti\simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip\tirtos\iar\stack 2 -hex1 C:\ti\
    simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip\tirtos\iar\stack\FlashROM\Exe\sp_oad_offchip_cc2640r2lp_stack_FlashROM.hex -bdf C:\ti\
    simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip\tirtos\iar\stack\..\config\iar_boundary.xcl -k "C:\ti\simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\
    CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip\tirtos\iar\stack\..\..\..\..\..\..\..\..\tools\blestack\oad\private.pem" -o C:\ti\simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\CC2640R2_LAUNCHXL\blestack\
    simple_peripheral_oad_offchip\tirtos\iar\stack\FlashROM\Exe\sp_oad_offchip_cc2640r2lp_stack_FlashROM_oad"

  9. I then deleted the simple_peripheral_oad_offchip example and copy a clean simple_peripheral_oad_offchip to the same location from a backup I made of simplelink_cc2640r2_sdk_2_40_00_32 before starting my work.
  10. I attempt to build the project again but it fails the Post-build action as above.

What did I do wrong or is there a known bug with the simplelink_cc2640r2_sdk_2_40_00_32 simple_peripheral_oad_offchip example?

It seems that something has changed somewhere that I cannot see so even though I try to build a clean simple_peripheral_oad_offchip  example project it always fails the post-build. Please help me as this is very frustrating.

Thank you.

Best regards,

Annette Thøgersen Skjøt