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.

None of the IAR compiled .hex files could be run with CC debugger

Other Parts Discussed in Thread: CC2530

Hi!

I have a problem of programming the .hex files from IAR linker and compiler to the CC2530.
Actually the programming goes well but the device does not start working.
I can build and run little projects and also the debugging image.
But if the project is full ZStack project for example none of the .hex variants do work.

Right now I am compiling .bin files, convert unwanted data away and program my CC2530 chips with freeware cc flasher, since cc debugger does not support .bin files

Anyone have had the same problem?

Best! 

  • I ask I answer. In the linker configuration file f8w2530.xcl there is 2 lines which need to be included since they are disabled by default:

    // 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

    Now linking hex file works like a charm!