2022-03-16 01:05 PM
The program size of my project is as follows "Program Size: Code=30996 RO-data=1548 RW-data=36 ZI-data=34980". The board i am using is a STM32WLJ1 board "256-Kbyte Flash memory and 64-Kbyte SRAM". I believe flash memory is causing me issues in my project. I am left to conclude that the CubeMx software is somehow taking up alot of data memory and i was wondering if there was any way to reduce this requirement. Any help would be appreciated, thank you.
2022-03-16 05:20 PM
> Program Size: Code=30996 RO-data=1548 RW-data=36 ZI-data=34980
> I believe flash memory is causing me issues in my project.
Why? Your code size is well below the 256kB available.
Higher optimization settings will lead to smaller code sizes. And/or more optimized code.
2022-03-17 12:05 AM
> I believe flash memory is causing me issues in my project.
The bottleneck seems to be in RAM data, not flash.
2022-03-20 12:28 PM
my apologies, yes RAM seems to be the issue. I am wondering if there are any ways to optimize the size of the code using either the STMcubeIDE or the Keil uVision software?
2022-03-20 01:23 PM
As TDK wrote, enable size optimization in compiler options.
If this won't yield enough savings, look what occupies the RAM, optimize manually.
2022-03-20 01:30 PM