cancel
Showing results for 
Search instead for 
Did you mean: 

Big image file after using ccmram

KR51K
Associate III

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

3 REPLIES 3
Uwe Bonnes
Principal III

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.

KR51K
Associate III

Hello, that’s exactly the point: how do I prevent that this section is in the image file since it is completely useless?

KR51K
Associate III

Hello,

got it - just add a (NOLOAD) to the section.