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.

Compiler/CC2630: Compiler optimizations lead to unusual behavior

Part Number: CC2630
Other Parts Discussed in Thread: Z-STACK, , CC2530

Tool/software: TI C/C++ Compiler

Hi,

when I activate the compiler size optimizations for my application I get unusual behavior. Leave Requests for example are not handled correctly. I dont receive the zstackmsg_CmdIDs_ZDO_LEAVE_IND while I do when I deactivate the optimizations. I already use the optimizations on the ZStackCore.

I'm using Z-Stack 1.2.2.a with IAR Workbench 8.22.1.

Could this happen because of the newer Compiler Version?

Regards,

Philipp

  • Hi Philipp,

    Untested compilers can definitely cause strange Z-Stack issues, especially with an archived release such as the CC26x0 HA 1.2.2a, and given this we highly recommend that customers only use IDE version which has been tested for the specific stack (EWARM 7.40.2). I understand your frustration as the CC2630 is already limited on flash space but there is no supported Zigbee alternative for this device.

    Although created for the CC2530, perhaps this optimization guide can offer some more clues on how to conserve memory: http://www.ti.com/lit/wp/swra635/swra635.pdf 

    Regards,
    Ryan