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.

Cannot flash sampleswitch OTA features

Other Parts Discussed in Thread: Z-STACK, CC2530

I'm trying sampleswitch OTA features using Z-Stack HA 1.2.1.
I have compile Sampleswitch according to OTA Upgrade user guides.
Since I cannot flash the firmware direct from IAR to CC2530 via SmartRF05 v1.8.1.

Happen on all sample apps. IAR, Project>Download and Debug ---compile complete, downloading indicator finished, firmware on CC2530 no changes.


So, I compile it into hex format and try to flash it using SmartRF Flash Programmer v1.9. For others sample apps working fine.


But for this sampleswitch with OTA features, I get this error:

"CC2530 - ID1433: HEX file content at address 0x7C7FF exceeds chip's 256 kB flash size"

How to proceed? Also tried previous Z-Stack HA 1.2.0. Same problem. Thank you.

  • cyclonmaster geostigma said:
    Happen on all sample apps. IAR, Project>Download and Debug ---compile complete, downloading indicator finished, firmware on CC2530 no changes.

    Firstly I would try to figure out why the download and debug in IAR does not work. This should be a fundamental first step.

    1. Did you follow the instructions in "Z-Stack Home Sample Application User's Guide.pdf".

    2. Are you using the same version of IAR as stated in the release notes.

    3. Under project -> options -> debugger setup tab is the Driver set to "Texas Instruments". Or have you (or IAR when converting project file to a newer version) changed this to "Simulator".

    4. Is the jumper P11 "Power Source" on SmartRF05 under the power switch set to "2-3: USB/DC".

    cyclonmaster geostigma said:

    But for this sampleswitch with OTA features, I get this error:

    "CC2530 - ID1433: HEX file content at address 0x7C7FF exceeds chip's 256 kB flash size"

    in the xcl (linker) file used in the project, is the following line uncommented:

    // 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 needs to be uncommented or you will get the error you are seeing.

    Regards, TC.

  • I made a change in f8w2530.xcl as you mention above, turns out I made a mistake. For OTA, I need to add ota.xcl and made changes in that.