Data segment did not fit in ram

When building I am getting the error “data segment did not fit in ram” but i cant find a clear value as to how big the data segment can be. I’m sure it should fit into the 32Mb flash. But perhaps im wrong about the 32Mb number?

“data” is a read/write segment and can not go in flash. It is limited to the 16 KB SRAM.

“rodata” can go in flash.

1 Like