Error pops up while programming external flash using STMCubeProgrammer
Hi All, I am working on TouchGFX using STMCubeIDE( STM32G474 Eval-Board). There is a need to implement external flash driver for the project. I am using QSPI for implementing the flash driver. In linker file I have memory definitions as below :
/* Memories definition */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K
QSPI_FLASH (r) : ORIGIN = 0x9000000, LENGTH = 16M
}
/* Sections */
.ARM.attributes 0 : { *(.ARM.attributes) }
ExtFlashSection :
{
*(ExtFlashSection ExtFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >QSPI_FLASH
Now, While programming the external flash using STMCube Programmer, its not able to program it. The STMCubeIDE generates .elf file which I trying to program and CubeProgrammer fails to program for QSPI_FLASH region. Error Image below :-
Please check if anybody can help.
Thanks in advance.