cancel
Showing results for 
Search instead for 
Did you mean: 

Partition a QSPI NOR Flash in memory mapped mode

drJonesy
Associate

Hi

This is something very easy that I am missing or impossible. I am using a nucleo-l476 to drive an RA8875 with a flash memory attached. This is using touch gfx to drive the RA8875 LCD. I am switching in/out of memory mapped mode to rewrite part of the flash memory so I can load different images into the flash memory and touch gfx will load the new images from the nor flash (This all works beautifully).

what I am trying to do is have touch gfx load an image to a different part of the nor flash using partitioning.  see linker below.

 

MEMORY

{

RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 96K

RAM2 (xrw) : ORIGIN = 0x10000000, LENGTH = 32K

FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K

QSPI_NOR (xrw) : ORIGIN = 0x90000000, LENGTH = 8M

QSPI_NOR_P (xrw) : ORIGIN = 0x90800000, LENGTH = 8M

}

 

/* Sections */

SECTIONS

{

ExtFlashSectionP :

{

*(ExtFlashSection ExtFlashSection.*)

*(.gnu.linkonce.r.*)

. = ALIGN(0x100);

} >QSPI_NOR_P

 

ExtFlashSection :

{

*(ExtFlashSection ExtFlashSection.*)

*(.gnu.linkonce.r.*)

. = ALIGN(0x100);

} >QSPI_NOR

 

 

 

FontFlashSection :

{

*(FontFlashSection FontFlashSection.*)

*(.gnu.linkonce.r.*)

. = ALIGN(0x100);

} >QSPI_NOR

 

 

the issue is touch gfx wont show or allow me to write to the separate partition

on the nor flash. is what i am trying to do possible and if so what am i missing.

0 REPLIES 0