How to create __BSS buffers in flash memory region

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to create __BSS buffers in flash memory region

254 次查看
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 项奖励
1 回复

235 次查看
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 项奖励