cancel
Showing results for 
Search instead for 
Did you mean: 

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

CJadh
Associate II

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

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

View solution in original post

1 REPLY 1
Erwan YVIN
ST Employee

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