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.

IAR compile error when I compile the BLE simplelink example."could not launch the tool python"

Other Parts Discussed in Thread: CC2640

IAR compile error when I compile the BLE simplelink example."could not launch the tool python"

Detail : I compile the the OAD Target "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\OADTarget\CC26xx\IAR"

when I start compile APP part,the error happen"could not launch the tool python",please help .

  • what is the version of IAR?
  • Hi Igor,

    My IAR version is 7.30.4.
    I found that this require python install as below:
    To build the hex file, make sure Python 2.7.x is installed and added to your system path environment
    variables. Also required is the Python IntelHex script hex_merge.py, freely available on the web at
    launchpad.net/.../ download. The expected location of the script is
    “C:\Python27\Scripts\” as the post build procedure assumes the script is there.

    I followed this instruction but still have error below:
    " File "C:\Python27\Scripts\hexmerge.py", line 178, in <module>
    sys.exit(main())
    File "C:\Python27\Scripts\hexmerge.py", line 139, in main
    import intelhex
    ImportError: No module named intelhex
    Error while running python "C:\Python27\Scripts\hexmerge.py" -o "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\OADTarget\CC26xx\IAR\Application\CC2640\FlashROM\Exe\OAD_merge.hex" -r "0000:1FFFF" --overlap=error
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\OADTarget\CC26xx\IAR\Application\CC2640\FlashROM\Exe\OADTargetApp.hex":0100:1FFFF "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\OADTarget\CC26xx\
    IAR\Application\CC2640\..\..\..\..\..\util\BIM\CC26xx\FlashOnly\Exe\BIM.hex":0000:1F5FF "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\OADTarget\CC26xx\IAR\Application\CC2640\..\..\Stack\CC2640\FlashROM\Exe\
    OADTargetStackFlashROM.hex":F000:1EFFF

    Total number of errors: 1
    Total number of warnings: 0
    "
  • I have fixed this bug,by install the intelhex-1.5 plug-in,previous intelhex-2.0 is NG.
  • you'll need the intelhex library installed too.

    A quick websearch gives the following result: pythonhosted.org/.../part1-3.html