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.

Bootloading cc2530 using smartRF05EB for OAD

Other Parts Discussed in Thread: CC2511, CC2530, CC2530EM

Hi,

After purchasing the CC2530DK from TI and running the basic PER test, my intention is to implement OAD functionality using the two EB's available in the kit as two separate devices.As the OAD boot code needs to be downloaded first i did the following steps

1. As per the instruction given in the Flash programmers mannual, i tried to download boot.hex(generated from boot.eww available in ti stack cc2530-2.3.0-1.4.0) using the EB bootloader tab in smartRF studio.Is this the correct way to do this?(CCDebugger was used)

2.After i bootloaded the hex, the LED3 is glowing orange & D6(usb led) is not glowing at all.Is this ok?

3.While my actual intention was to bootload the cc2530 chip, is this what was achieved or did i end up in corrupting the usb firmware(for cc2511) on DB instead?If yes, how what is the recovery?Where can i get the original bootloader hex file from?

4.Assuming the bootloading procedure i did is correct, When i try to load a sample application with OAD functionality implemented, it gives me the following error Warning: Stack Pointer SP outside stack segment.

Where did i go wrong?/Could you tell me the step by step guide to download bootloader and eventually OAD functionality?

  • Hi Sumitra.

    I'm sorry to tell you, but your were right with your suspicions. Since you used the "EB bootloader" tab in the Flash Programmer (using an external CC Debugger) you have reprogrammed the CC2511 USB controller and overwritten its bootloader and application firmware. Instead you should have used the "System-on-Chip" tab.

    Here is how you can fix the CC2511/SmartRF05EB back to normal again:

    a) Restore SmartRF05EB/CC2511 USB bootloader:
    - Remove any CC2530EM from the SmartRF05EB.
    - Re-attach the CC Debugger (as you did before) on the "USB debug" header, and press reset button on the CC Debugger to see it recognizes the target CC2511 (green light).
    - Use SmartRF Flash Programmer, select the tab "EB bootloader", specify Device="SmartRF05EB" in the left column.
    - Browse to select the default HEX image for the SmartRF05EB bootloader: "C:\Program Files\Texas Instruments\Extras\Srf05eb\srf05eb_bootloader.hex".
    - As actions, select "Erase, program and verify", and enter the same board identification number as found on the sticker on the back-side of the SmartRF05EB.
    - Finally program the bootloader by clicking "Perform actions" button.

    b) Restore the default SmartRF05EB/CC2511 application firmware:
    Disconnect the CC Debugger. You can reprogram the default application firmware via the new USB bootloader you just programmed (it will also be a nice test to see if the bootloader works). When turning the SmartRF05EB off and then on, its "USB LED" should now be blinking rapidly (due to no valid application firmware found).
    - In SmartRF Flash Programmer, select the tab "EB application (USB)", and select the SmartRF05EB to program in the device list (if it lacks application firmware it should say "N/A" as firmware ID)
    - For flash image, browse and select the file "C:\Program Files\Texas Instruments\Extras\Srf05eb\srf05eb_fwid0500.hex".
    - Select "Erase, program and verify" and hit "Perform actions" to program it.
    - Hopefully, when operation has completed, you should see that the SmartRF05EB is now re-appear in the device list with Firmware ID = 0500.
    - The board should now be back to normal, and you can test it by mounting a CC2530EM and see if it gets recognized.

    ---
    I am not very familiar with the OAD bootloader for CC2530 myself, so I can't explain how you're supposed to use it (please see the its documentation). But I can explain how you're supposed to program it onto the CC2530:

    - You do not need any CC Debuggers or anything to program it; just use SmartRF05EB with a CC2530EM mounted. (The SmartRF05EB/CC2511 will do the programming of the CC2530EM via USB.)
    - To program the CC2530EM, make sure to use the tab called "System-on-Chip".
    - Select the SmartRF05EB evaluation board with the CC2530 from the device list at the top, browse and select the flash image (HEX) you want to program, and perform "Erase, program and verify".

     

    I hope this helps. Let us know if you run into problems with recovering your SmartRF05EB.

  • First of all a big thanks for clearing the issues :) 

     

    However there are a couple of qeries further which need to be clarified in order to recover my smartRF05EB.

    1. Among the list of firmware’s available in the installation directory, I couldn’t find srf05eb_bootloader.hex   instead I found srf04eb_bootloader.hex.Similarly for srf05eb_fwid0500.hex, I found fw0400.hex.

    (I had installed smartRFStudio 7).Would theses files be compatible to my EB which smartRF05EB and not smartRF04EB?

     

    2. Regarding programming of cc2530, I assume the EM also comes with a pre-loaded boot loader. So if I program it using the SOC tab, any .hex file I try to download will be taken as an application firmware and dumped to application memory right? In that case how can I erase and re-program the boot code for

    cc2530EM which is sitting on the smartRF05EB and then download my application code?

    3.There is a ExtSoC Debug connector (P3) available on the smartRF05EB.What is this connector used for ? Can I connect the ccDebugger to this connector (if the pin conenction's match) and edit the bootcode of CC2530EM through this?

    Thanks in advance!

  • Hi Esy,

    With your help i was finally able recover my smarRF05EB. Thanks!

    Could you direct me to someone who can help me with OAD?