STM32F407VET6 "RAM overflow" while using only 2/3 of it (afaik)
I need to declare ~153 KB buffer as a framebuffer for display (more precisely at least two buffers, as one must be in CCMRAM to have enough space) and as this MCU has 192 KB RAM in total, it clearly should be possible. But as soon as I declare buffer in CCMRAM (framebuffer2) to be of size 65536 and buffer in normal RAM more than 63798 (framebuffer1), linker gives me “RAM overflowed by ...” error.
I’m pretty new to this, so I don’t know exactly why is this happening, whether it is wrong linker definition, or some debug features taking up space, or something else. I’m working with CubeMX generated HAL project.
output.map and linker definition:
https://drive.google.com/open?id=0BynchtWoOt7aZzhXOFlDVURjMUE