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.

Download to CC2530 by ccDebugger

Other Parts Discussed in Thread: CC2530

Hello,

Now I'm up against a problem of downloading to CC2530 by ccDebugger.

Firstly i tried to download HEX file into SmartRF05 Evaluation Board Rev. 1.7.1 on which CC2530 EM discrete 1.3.1 is mounted using cc Debugger and SmartRFR Flash Programmer.

But I couldn't write and after it even only with SmartRFR Flash Programmer via USB download became disable.

I gave up to use the SmartRF05 Evaluation Board Rev. 1.7.1 and I started to try to write into my original CC2530 board not so different with CC2530 EM discrete 1.3.1.

But error occurred with following message.

CC2530 - ID5697: Error in HEX file verification

Though cc Debugger itself seems to be recognized showing info in upper window.

EBID:5697  Chip type:CC2530  EB type CC Debugger  EB firmware: 05CC  EB firmware rev: 0008

If there are someone know how to solve, please show me.

Thanks

  • I knew the answer, but I wanted to show it in the documentation ... it wasn't easy! I found it in an obscure location, so read below for the details. The short answer is that to produce an intel-extended .hex file format, you have to change the IAR linker behavior with respect to addressing the code banks (its a complicated 8051 banking problem) ... just uncomment these lines in the f8w2530.xcl file found under the "Tools" folder in the IAR project for any sample application:

    // Include these two lines when generating a .hex file for banked code model:
    //-M(CODE)[(_CODEBANK_START+_FIRST_BANK_ADDR)-(_CODEBANK_END+_FIRST_BANK_ADDR)]*\
    //_NR_OF_BANKS+_FIRST_BANK_ADDR=0x8000

     

    This trick is documented in swru038.pdf: "IAR IDE User Manual Rev. 1.2"

     

     

    http://focus.ti.com/lit/ug/swru038/swru038.pdf

     

     

    5.2.3 Create HEX-file

    Because of the non-continuous address space when using banked code model, the HEX file

    generated will not be usable with the Chipcon Flash Programmer. To map this address space

    into one continuous address range, include the line below into the xcl-file or insert it in the IAR

    IDE as shown in Figure 8. If this line is included the C-Spy debugger cannot be used.

    -M(CODE)[(_CODEBANK_START+_FIRST_BANK_ADDR)-

    (_CODEBANK_END+_FIRST_BANK_ADDR)]*_NR_OF_BANKS+10000=0x8000