- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are using GCC, you can switch to MDK ARMCC. The later does a better job optimizing the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
An application notes about this topic is FYI.
AN89610 - PSoC® 4 and PSoC 5LP Arm® Cortex® Code Optimization
Thanks,
Ryan