How to create __BSS buffers in flash memory region

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create __BSS buffers in flash memory region

230 Views
Ragnar
Contributor III

Hello NXP,

            I am working on a project which has limited ram on my board, so I want to use the flash memory as RAM to store the image buffers coming from the camera.

Is there any way to do that?

If possible, could you please provide the reference.

Thanks in advance for the help.

Regards,

Ragnar.

0 Kudos
1 Reply

211 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Ragnar,

You can take the following posts as reference on how to move code to specific sections of the memory map:

Placing Code in Sections with managed GNU Linker Scripts | MCU on Eclipse

LPC: How to place data/function/file in specified memory under MCUXpresso IDE - NXP Community

That said, I wouldn't recommend placing the image buffers in flash. Although it might be "used" as RAM memory, it definitely is not RAM memory, so access to this section of the memory map will be much slowing in comparison to placing them in RAM, and performance on your application will be greatly reduced. For applications that use image buffers like this one, my recommendations would be to place other sections of the code in flash, rather than the image buffers themselves.

BR,
Edwin.

0 Kudos