How to create __BSS buffers in flash memory region

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to create __BSS buffers in flash memory region

235件の閲覧回数
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 返信

216件の閲覧回数
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 件の賞賛