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.

Serial Boot Loader CC2530



Hi

 

i want to include the SBL into our Project. I downloaded the project but now i didn't find the described Software to download the binary via the UART.

The Document "SWRA327 Serial Boot Loader For CC253x SoC" say that the SBDemo.exe is found here: ...Texas Instruments\Z-Stack-CC2530-2.3.1-1.4.0\Tools\SBL Tool

but if you install the current version 2.4.0 you don't have this Folder.

Where  can i find/download this Program?

Is there a Description about the UART-Communication / CMD's how to do a Update? I need such a description because our Updatesoftware will not run on a PC(embedded Sysem) in future and we have to make the SW by ourself...

 

  • Hi,

    I was working on the same thing a few weeks ago. There is no description about the CMD's to send but I was able to develop my own Java software to update a CC2531device using the SBL. I'll try to explain how I did it.

    I send frames according to the following format:

    SOF - LEN - CMD1 - CMD2 - DATA - FCS

    SOF = 0xFE

    LEN = Length of DATA field

    CMD1 = 0x4D

    CMD2:  WRITE_CMD=0x01    READ_CMD=0x02    ENABLE_CMD=0x03    HANDSHAKE_CMD=0x04

    FCS = Frame Check Sequence

    First, you should reset (Soft reset) your application to run the SBL and force the new code load. Then you send a handhsake command to check that the SBL is ready for update. After that you send the code. In my app I send packets of 66 Bytes long. The first two Bytes specify the memory page where you are writing (page 0xXYZ must be codified as 0xZ0 0xXY) and the other 64 contain the code itself. Finally, I send read commands to check that all the code was correctly written and an enable command to re-start the app. Every time you send a command to the SBL, you get a response where CMD2 field is ored with 0x80 (if you send 0x01, you'll get 0x81).

    I hope this helps you with your task.

    Greetings

  • Hello Julian,

    I am doing the same thing 5 years after you already did it... And here is my question:

    I want to use the .bin file as source to download. Is the page 0x000 map to the address 0x0000 in .bin file? Is there any guideline I can follow to achieve this?

    Awaiting for your reply..

    Thanks

    Tian
  • Hi Tian,


    It's been a long time since I worked on this. I don't remember the details about it, but I followed a guide by TI called "Serial Boot Loader for CC253x.pdf". You can find it easily in Google.

    Good luck.


    Julián

  • Hi Julian,

    Since its already 5 years, I'm not really expecting your reply... haha.. Really surprised and helpful to me! 

    Thanks!

    Regards,

    Yiran