2020-05-07 11:04 AM
Hello,
i have to use the ccmram in my application. But after „enabling“ this in the linker file, the compilation output it getting quite big. I had a look in the files and saw, that the memory beginning from the ccmram address is also stored in the output, filled with zeros.
How can I disable this? This makes the output files really huge and it long to flash the controller.
Thanks best regards
Christoph
2020-05-07 11:12 AM
Binary file have no mean to skip emty space, so they fill it. CCMRAM is located far away from flash, so image file gets big you your linker loader direct to CCMRAM. However this uis wrong, as CCMRAM is not persistant. Only after upload, CCMRAM is as expected. You need to load CCMRAM content in a linker section to flash and at startup load CCMRAM from that flash region.
2020-05-07 11:15 AM
Hello, that’s exactly the point: how do I prevent that this section is in the image file since it is completely useless?
2020-05-07 11:35 AM
Hello,
got it - just add a (NOLOAD) to the section.