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.

LAUNCHXL-CC2640R2: Procedure to Program Simple Peripheral on-chip?

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2650

Hi,

   I want to know what is exact procedure to program simple_peripheral_cc2640r2lp_app_oad_onchip, simple_peripheral_cc2640r2lp_stack, bim_oad_onchip_cc2640r2lp_bim. I am using CCSV7. Here are my procedures below and the results.

Procedure 1: CC2640R2 Launchpad not detected at Sensortag App.

  1. Program hex files of simple_peripheral_cc2640r2lp_app_oad_onchip, simple_peripheral_cc2640r2lp_stack, bim_oad_onchip_cc2640r2lp_bim using Smart RF Flash Programmer 2.

Procedure 2: CC2640R2 Launchpad not detected at Sensortag App.

  1. Program hex files of simple_peripheral_cc2640r2lp_app_oad_onchip, simple_peripheral_cc2640r2lp_stack using Smart RF Flash Programmer 2.

Procedure 3: CC2640R2 Launchpad detected at Sensortag App.

  1. Program hex files of simple_peripheral_cc2640r2lp_app_oad_onchip, simple_peripheral_cc2640r2lp_stack, bim_oad_onchip_cc2640r2lp_bim using Smart RF Flash Programmer 2.
  2. CCS-Debug simple_peripheral_cc2640r2lp_app_oad_onchip to load program and then terminate CCS->Debug

Why Procedure 3 only works? Do I need to program superbin as described at On-Chip OAD Guide?

- kel

  • Hi,

    The BIM and stack projects need to be flashed before the app project. That's why procedure 3 worked, because you programmed the board with the app project after the stack and bim were already downloaded on in.

    -Nathan
  • NathanS said:
    The BIM and stack projects need to be flashed before the app project.

    Because of this Procedure 1, will not work. I tried Procedure 1 again and my CC2640R2 Launchpad can not be seen at SensorTag App. This is On-Chip OAD configuration simple peripheral

    But why for CC2650 Launchpad when I program the hex files of sensortag_cc2650lp_app, sensortag_cc2650lp_hex, and bim_extflash using SmartRF Flash Programmer 2, it works without problems after reset. My CC2650 launchpad can be seen at SensorTag App. This is Off-Chip OAD configuration.

    - kel

  • Hi,

    It is possible that it could work with the app getting flashed first, depending on the memory mapping. In general though, the app should always be flashed after the stack and bim.

    -Nathan
  • NathanS said:
    It is possible that it could work with the app getting flashed first, depending on the memory mapping. In general though, the app should always be flashed after the stack and bim.

    I will try this later. But this is the comparison I did with simple peripheral for CC2650 Launchpad and Simple Peripheral for CC2640R2 Launchpad.

    Procedure 4. CC2650 Launchpad detected at SensorTag App.

    1. Program hex files of simple_peripheral_cc2650lp_app and simple_peripheral_cc2650lp_stack to CC2650 Launchpad using SmartRF Flash Programmer 2.

    Procedure 5. CC2640R2 Launchpad not detected at SensorTag App.

    1. Program hex files of simple_peripheral_cc2640r2lp_app and simple_peripheral_cc2640r2lp_stack to CC2640R2 Launchpad using SmartRF Flash Programmer 2

    Procedure 6. CC2640R2 Launchpad detected at SensorTag App. Able to turn on LEDS and detect key press.

    1. Program hex files of project_zero_cc2640r2lp_app and project_zero_cc2640r2lp_stack to CC2640R2 Launchpad using SmartRF Flash Programmer 2

    With these test comparison there is something wrong with your simple_peripheral_cc2640r2lp_app and simple_peripheral_cc2640r2lp_stack. 

    Since my current product development requires on-chip OAD I need to know the correct procedure to program the hex files of simple_peripheral_cc2640r2lp_app_oad_onchip, stack, and bim using SmartRF Flash Programmer 2.

    - kel

  • NathanS said:
    the app should always be flashed after the stack and bim.

    Procedure 7. CC2640R2 Launchpad not detected at SensorTag App.

    1. Program hex files of simple_peripheral_cc2640r2lp_stack and bim_oad_onchip_cc2640r2lp_bim using SmartRF Flash Programmer 2.
    2. Program hex file of simple_peripheral_cc2640r2lp_app_oad_onchip using SmartRF Flash Programmer 2.

    Procedure 8. CC2640R2 Launchpad not detected at SensorTag App.

    1. CCS->Debug simple_peripheral_cc2640r2lp_stack to load program.
    2. CCS->Debug bim_oad_onchip_cc2640r2lp_bim to load program.
    3. CCS->Debug simple_peripheral_cc2640r2lp_app_oad_onchip.

    Please, clarify the procedure. I also used oad_target_cc2640r2lp_stack hex files but still same result. The alternate way is to use Project Zero as base for product development and then add on-chip OAD. But, from my experience with Project Zero at CC2650 Launchpad, adding just one service causes error. I hope the same will not happen with Project Zero for CC2640R2 Launchpad.

    - kel 

  • Markel Robregado said:

    Procedure 5. CC2640R2 Launchpad not detected at SensorTag App.

    1. Program hex files of simple_peripheral_cc2640r2lp_app and simple_peripheral_cc2640r2lp_stack to CC2640R2 Launchpad using SmartRF Flash Programmer 2

    This is caused by programming hex files of simple_peripheral_cc2640r2lp_app and simple_peripheral_cc2640r2lp_stack from C:\ti\simplelink_cc2640r2_sdk_1_00_00_22_copy

    CC2640R2 Launchpad detected at SensorTag App if programming hex files of simple_peripheral_cc2640r2lp_app and simple_peripheral_cc2640r2lp_stack from C:\ti\simplelink_cc2640r2_sdk_1_00_00_22

    - kel

  • Hi,

    I will just use Procedure 3. But, I still like to know why Procedure 1 do not work.

    - kel
  • Hi,

    As long as you flash the device with bim and the stack project before the app, procedure 1 does work. Make sure you are using the default sdk and try a mass erase of the device first if you still don't see it advertising.

    -Nathan
  • NathanS said:
    As long as you flash the device with bim and the stack project before the app, procedure 1 does work

    I tried Procedure 1 more than 10 times now and it does not work. I tried also flashing the bim and stack project first and then the app and it does not work. Your engineer can duplicate this at TI side.

    Procedure 1: CC2640R2 Launchpad not detected at Sensortag App.

    1. Program hex files of simple_peripheral_cc2640r2lp_app_oad_onchip, simple_peripheral_cc2640r2lp_stack, bim_oad_onchip_cc2640r2lp_bim using Smart RF Flash Programmer 2.

    What works is Procedure 9. The difference is Procedure 1 uses simple_peripheral_cc2640r2lp_app_oad_onchip and Procedure 9 uses simple_peripheral_cc2640r2lp_app.

    Procedure 9: CC2640R2 Launchpad detected at Sensortag App.

    1. Program hex files of simple_peripheral_cc2640r2lp_app, simple_peripheral_cc2640r2lp_stack, bim_oad_onchip_cc2640r2lp_bim using Smart RF Flash Programmer 2.

    - kel

  • Hi,

    Procedure 9 will not work for OAD. Procedure 1 has been tested to work as long as the order described here (and in the OAD User's Guide) is followed.

    -Nathan
  • Hi NathanS,

    I have done the On-Chip OAD Guide several times and it works. But, I am at software development stage and On-Chip OAD Guide Procedure requires too many steps and the OAD takes some time to finish.

    So, now my work flow for software development stage is do Procedure 9 and do Procedure 1 at the last part to test On-Chip OAD.

    Thanks for your time.

    - kel