cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with flash programming -SPC584Bxx

SKara.7
Associate II

After flash programming, the program doesn't run once I disconnect the debugger and do a power cycling. Can somebody help me to find what the problem is? I use the attached build settings for Hex file generation in SPC5 Studio.

0693W00000HrSv4QAF.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
ODOUV.1
ST Employee

Hello,

as it seems you modified the Load Address, it is safer to erase all the flash before to reprogram it.

Do it, then normally it should work.

Best Regards,

-Olivier

View solution in original post

5 REPLIES 5
ODOUV.1
ST Employee

Hello,

as it seems you modified the Load Address, it is safer to erase all the flash before to reprogram it.

Do it, then normally it should work.

Best Regards,

-Olivier

Thanks for the reply.

May I know if it is safe to erase the whole flash as shown below ?

0693W00000HrVouQAF.png

ODOUV.1
ST Employee

Yes it is exactly how I do on my side.

Like this you erase the start of previous program (eg in F4000000) and you will be able to flash your new program (eg at 0xFE000000) then it will boot properly.

BRs,

-Olivier

ODOUV.1
ST Employee

I mean old program was maybe starting in 0x00FC0000 and new one in 0x00FE0000

SKara.7
Associate II

Thank you very much. I was able to solve the issue by changing the Loading address to the default and reflashing. Erase of the flash was not necessary. Thanks again for the help!

Regards,

Sreejith