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.

OAD for CC2530

Other Parts Discussed in Thread: CC2530, CC2531, CC2530EM, CC-DEBUGGER

Hello Everyone,

I have recently bought the CC2530DK and want to implement the OAD feature.Though i saw some discussions regarding the same, i couldn't find a clear solution.

I have been folowing the doc swra257-Over air download for CC2530 Soc,but failed in the process.

We are using, CC2530 development kit which consists of 2 smartRF05EB,CC2530EM & CC2531 dongle.

Do i understand it correctly when i say

1.Download Dongle.eww project to the EB which is to be used as Dongle device- ie download Dongle.eww & then run ZportApp application code ?

2.Download boot.eww project to the devices which will recieve OTA upgrade & then OAD enabled application code.

3.Connect the Dongle to PC via serial port and open ZOAD to start OTA?

When i download boot.eww project and then OAD application code it gives me the following error and fails

Warning:Stack Pointer outside Stack segment!  

Why is this happening?

I am in desperate need of help and help would be appreciated.

 

  • Hello Sumitra,

    For OAD feature, you need three boards. One as coordinator, one as ZLoad device and another with OAD capability (this

    last one is the device to program).

    Zload device use Dongle project you are right.

    The third need a more complex method. The easier method is to generate a hex file to program device with CC-Debugger.

    You generate the bootloader part with boot.eww project and generate another hex with your application. These two

    hex files must do only one at the end (look in the documentation, it is describe).

    If think that for your problem is that you erase Flash bootloader part while you download your application.

    As the START_CODE is different your interrupt_vectors are not correct.

    Launix.

     

     

  • Hi Launix,

    Thnks for the info.

    I read on the forum that if you are using ZOAD application one needs to use another application called ZPortApp along with Dongle.eww. Is that required since iam using CC2530EB?

    Also, what you said is correct.My application hex file will always overwirte my boot hex file.How can i ensure that this is not happening?? How can i change this start code location?

  • Hi Sumitra,

    ZportApp is the interface you use in Zstack with ZOAD I think, the project Dongle.ewww is enought for your provider device.

    This is describe in Over_Air_Download_for_CC2530.pdf,

    1- Use boot.ewww project to generate your boot.hex

    2- Use your own device.ewww project to generate your device_oad.hex (don't forget to use oad.xcl).

    The *.xcl defines the different segment code in Flash.

    3- Copy the content of these two files in one file => oad.hex, you can program now with this last one.

    Launix.

     

     

  • Hi Launix,

    Could use a lil more help from you on OAD.

    For implementing OAD ,I am planning to use SmartRF05EB as my dongle device & has programmed it with dongle.eww.My questions are 

    1.Would simply flashing the SmartRF05EB with dongle.eww be sufficient to enable the serial communication between the hardware and and ZOAD  or should we first flash a serialboot code and then dongle.eww??

    2.In case of former, even after flashing dongle.eww alone into the SmartRF05EB, ZOAD says 'no host device'  available. why is this??

    3.Currently we have a constraint of using Zstack2.2.0.So would ZOAD available in 2.3.0 be compatible with this?

    Thanks

    Sumitra