Getting this compiler error. Data will not fit in the region 'SRAM'
How can I correct this or increase the SRAM size.
The error message suggests you are declaring huge arrays in RAM. Such a strategy works on PCs with virtually unlimited memory, but not microcontrollers.
Change the used algorithms to get along with the resources the MCU has.
I never once had an embedded project were the project management picked the largest and most expensive controller, just to allow for simplest coding.
Ok, sorry. I just thought it might be related to that.
I had a similar "RAM overflow" problem (but which ended up being related to CAN) and the following posts helped me:
https://community.nxp.com/t5/LPC-Microcontrollers/Linker-fail-LPC55/m-p/1355863#M46793
Dear SVA-Vending, are you using CAN and have you used the CONFIG TOOL to initialize the CAN module?
Hi SynBilly,
I am not using CAN at all.
Here is what I am getting.
Thanks
HI SVA-Vending
Please go to project setting to increase RAM size
Please make sure the new defined range is inside the legal RAM memory.
Best Regards
Jennie