STM32F405 Default Memory Mapping
Posted: Sun Apr 24, 2022 5:00 pm
While looking for ways to reduce memory usage on the STM32F4 chip, I discovered that MicroPython was only accessing 128K of the total 192K. Which at first confused me until I dug deeply and read in the chip specification about the 64K of CCM memory.
After some testing based on the ideas from reading this post , I changed the memory mapping to have the stack contained in the CCM portion of memory instead. This appears to work without issue.
My question is, should this be changed to be the default on this chipset, as it saves 16K of RAM, or is there a specific reason why this is a bad idea that I'm not aware of?
After some testing based on the ideas from reading this post , I changed the memory mapping to have the stack contained in the CCM portion of memory instead. This appears to work without issue.
My question is, should this be changed to be the default on this chipset, as it saves 16K of RAM, or is there a specific reason why this is a bad idea that I'm not aware of?