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.

CC2530EM Programming through debug interface

Other Parts Discussed in Thread: CC2530, SIMPLICITI, Z-STACK, CC2530EM

Hello all,

I am currently working on a project which involves programming CC2530 chips through debug interface. I have CC2530DK and it's been a great start so far. We are able to compile and run all the sample applications given for SimpliciTI and Z-Stack. Sample programs run were run on CC2530EMs.

However, the project involves programming of bare CC2530 chips and not CC2530EM. For the same, I went through an application note AN118 (published by TI) in which it is demonstrated how to program a CC2530x chip with the help of SmartRF05EB + CC2530EM setup through debug interface. The document is well written, but it is still unclear to me how to make a hex file available to programmer module. All I can understand from the code, is they are writing a hard-coded string to the DUP's (Device Under Programming) flash.

If anyone has any idea about how I can program a hex file into DUP's flash memory, then It'll be of great help to go forward.

Thanks in advance.

  • If you are talking how to download hex file into bare CC2530 chip, you can refere to the section 6.13 Debug Connector for External SoC in swru210a.

  • Thank you for your prompt reply, YiKai Chen.

    I had already gone through the part that you mentioned, however there are following issues -

    1. In the document, part explaining connection of external SoC to SmartRF05EB is missing (may be it's because of it's obviousness).

    2. Also, there is not step-by-step guide to burn any sample code, in such a setup.

    3. I tried to extract as much as I could from the document, made the connections and gave it a shot; but the IAR EW8051 IDE gives error (screenshot attached)


    4. I did get a document instructing on how to use debug interface to program external SoCs on TI website on -

    http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=swra410

    But as I mentioned in the original post, the code provided and discussed writes a hard-coded string of four characters on flash of DUP. Undoubtedly, code and document are very useful to get acquainted with debug protocol as well as internals of flash programming principles; but no clue as per how to program the external SoC with a HEX file has been given in the document.

    If time permits you, you can go through the document as well as code (it's there on the link). Thanks a lot for the help, once again.

  • Hello all,

    Glad to inform that I have found the solution for above discussed question. It goes as follows:

    1. Connect USB_DBG_DD to DD pin of CC2530.

    2. Connect USB_DBG_DC to DC pin of CC2530.

    3. Connect IO_EM_RESET to RESET pin of CC2530.

    4. Connect GND of the board (from any on of the GND pinout) to GND of CC2530.

    5. Give external CC2530 power (if possible from the SmartRF05EB itself).

    6. "Download and Debug" as usual, to program the externally connected CC2530.

    That's it. Thank you all. :)