Hi
i am working with cyble 22001 ble which has 128 kb flash and 16kb SRAM.
but due to my code flash size becomes morethan 128kb and sram becomes morethan 16kb .
If i choose code optimization option then code reduces to less than 128kb but code is not working.
Please help me to resolve the issue
Thanks in advance
Solved! Go to Solution.
When after code optimization a program doesn't run anymore check for the following:
Every global variable that is changed within an interrupt handler must be declared as volatile.
Btw: Code optimization can be set on a .c file basis.
Bob
When after code optimization a program doesn't run anymore check for the following:
Every global variable that is changed within an interrupt handler must be declared as volatile.
Btw: Code optimization can be set on a .c file basis.
Bob
If you are using GCC, you can switch to MDK ARMCC. The later does a better job optimizing the code.
An application notes about this topic is FYI.
AN89610 - PSoC® 4 and PSoC 5LP Arm® Cortex® Code Optimization
Thanks,
Ryan