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.

CC1352R: Problems creating OAD image

Part Number: CC1352R
Other Parts Discussed in Thread: UNIFLASH

Hello,

I am trying to add OAD to some example code that does not have OAD in order for me to get it working on my custom application.

Some background:

  • SDK = 4_40_00_44
  • HARDWARE = CC1352R1 (Launchpad)
  • Loaded the BIM and simple_peripheral_oad_offchip projects via Uniflash.
  • Using two dev kits one with BTOOL and the other running "simple_peripheral_oad_offchip"

So the example that I am using is “pwmled2_CC1352R1_LAUNCHXL_tirtos_ccs”.

I have done the following to make it OAD compatible (After reading Reference 1):

1. Changed the post build configuration to create a hex file and create an OAD-able binary file.
2. Added the recommended linker file from the SDK example “cc13x2_cc26x2_app.cmd” (“\simplelink_cc13x2_26x2_sdk_4_40_00_44\source\ti\ble5stack\common\cc26xx\ccs”)
3. Had to modify the example code's dependency, TI RTOS project's cfg file, to have the same heap name as defined in the linker script.
4. Followed the simplelink acedemy tutorial to change the reset vector in the TI RTOS cfg file. (Reference 1)
5. I had encounted some errors with the oad build tool that was fixed using (Reference 2).
   5.1 Added "oad_image_header_app.c" from SDK
   5.2 Added "oad_image_header_app.h" from SDK
6. I had successfully generated the OAD binary file.
7. I had tried to program it using the BTOOL application but it gives the following response:
------------------------------------------------
OAD ImageControl Response
Command ID = 0x12 (ImageBlockWriteRsp)
Status = 0x09 (OAD_INCOMPATIBLE_IMAGE)

OAD Download Failed
OAD Download Not Successful
------------------------------------------------

I am not sure why it does this....

(The project zero application can be loaded via OAD perfectly)

References:

1.


2.

  • Hi Sharan,

    It's great that you're using the SimpleLink Academy lab for reference. However this lab is written for a project that already has BLE enabled. The pwmled2 project doesn't have BLE enabled, this might be why it's not working.

    Personally I would think it would be easier to add PWM functionality to the Simple Peripheral OAD project. Will you try this and let me now how it goes?