Skip to main content
CJadh
Associate
January 13, 2021
Solved

Flash write in SPC58B70E5 not working if hex file is written on Flash

  • January 13, 2021
  • 1 reply
  • 775 views

Hi,

In the sample application for SPC584BXXX flash test, the hex file is written on RAM and then executed. I need the hex file to get written on flash and then write some data on other specific sectors of flash. So I modified the linker script by changing the RAM sections by flash at some places but the program doesn't work as expected.

Please help me to get an appropriate solution so that the hex gets written on flash and the FlashWrite Flashinit, FlashErase etc. will work as expected.

Thanks in advance.

    This topic has been closed for replies.
    Best answer by Erwan YVIN

    Hello ,

    If you are using SPC5Studio.

    Linker file is automatically generated

    you have to create a linker file user.ld at the root of the projet (Cf attachement user.log for an example RAM Sections changing)

    Best Regards

    Erwan

    1 reply

    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    February 4, 2021

    Hello ,

    If you are using SPC5Studio.

    Linker file is automatically generated

    you have to create a linker file user.ld at the root of the projet (Cf attachement user.log for an example RAM Sections changing)

    Best Regards

    Erwan