w25q128 external flash with stm32l412
Hi,
I am using stm32l412 controller with an external flash w25q128 in quadspi mode. I am able to read and write on to the flash memory. but I am unable to use it as an external loader. I referred many tutorials, I edited the linker script to add a section which created a space for external flash memory.
I tried to add a data to that particular memory space but, it is not showing in the memory. I would like to load a bin file from my external flash but even a data cannot be loaded.
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 40K
RAM2 (xrw) : ORIGIN = 0x10000000, LENGTH = 8K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
QSPI_FLASH (rx) : ORIGIN = 0x90000000, LENGTH = 16M
}
.extflash :
{
. = ALIGN(4);
_extflash_start = .;
*(.extflash) /* Place all sections with attribute .extflash */
*(.extflash*) /* Place any other sections with names that start with .extflash */
. = ALIGN(4);
_extflash_end = .;
} >QSPI_FLASH
