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.

Recompiling Cc2640 SimpleBLE Central and SimpleBLE Peripheral Demo programs give different code sizes and the new output demo code is not working

Other Parts Discussed in Thread: CC2640

Hi All,

I’m using the following HW and SW versions in my developments

2 SmartRF06 Board's + 2 CC2640 EM's (version PG2.2)

TI 2.0.0 BLE-SDK: TI BLE stack

IAR 7.30.4

 

For the user's convenience, the following hex files are included with the 2.0.0 SDK

C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Accessories\HexFiles\CC2640_SmartRF_SimpleBLECentral.hex (the file size is 279KB)

C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Accessories\HexFiles\CC2640_SmartRF_SimpleBLEPeripheral.hex (the file size is 264KB)

I ran these precompiled programs. These hex files work well and I can see the results on the test board LCD.

 

However, when I tried to recompile these programs from the demo projects included with the 2.0.0 SDK.

C:\ti\ simplelink\ ble_cc26xx_2_00_00_42893\ Projects\ble\ SimpleBLECentral

I got this output filename "SimpleBLECentralAppFlashROM.hex" (the file size is 79KB) instead of CC2640_SmartRF_SimpleBLECentral.hex (279KB) and when I tested the newly built hex file, the LCD display is blanked. The code is not working

Similarly, I got this output filename "SimpleBLEPeripheralAppFlashROM.hex hex" (the file size is 79Kbytes) instead of CC2640_SmartRF_SimpleBLEPeripheral.hex (the file size is 264KB)

and when I tested the LCD display is blanked. The code is not working

 

I use the following software variable setting came with the demo programs

  •    TI_RTOS_DRIVERS_BASE is C:\ti\tirtos_simplelink_2_11_01_09\packages
  •    CC26XXWARE is C:\ti\tirtos_simplelink_2_11_01_09\products\cc26xxware_2_20XDCROOT is C:\ti\xdctools_3_30_06_67_core
  •    XDCPATH is C:\ti\tirtos_simplelink_2_11_01_09\products\bios_6_41_02_41\packages
  •  BOUNDARY is C:\Program Files (x86)\Texas Instruments\Boundary

 

If anyone knows how to rebuild these demo programs and make them work with the results showing on the SmartRF06 evaluation board LCD please show me how.

Thank you very much!

 

Dan G.

  • Hello Dan,


    It appears that you may not have reviewed the BLE SW Developer's Guide (SWRU393) which explains the dual-image architecture and build procedure. I would also recommend reviewing the sticky CC2640 FAQ thread as there is some additional getting started materiel in that post.

    Note that the precompiled hex files are merged, but the IDE will produce non-overlapping hex files for each project (app/stack). You can merge them with freely available tools.

    Best wishes

  • Hi JXS,

    Thanks you very much for the information! Could you please suggest some merge tools that you know to combine these two parts of the project to me?

    Regards,

    Dan
  • Hi JXS,

    I use JFlash program to merge the code and it works great.

    Thank you very much for your help!

    Dan