2022-01-12 02:03 PM
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.
Solved! Go to Solution.
2022-01-13 02:19 AM
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
2022-01-13 02:19 AM
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
2022-01-13 02:29 AM
Thanks for the reply.
May I know if it is safe to erase the whole flash as shown below ?
2022-01-13 02:39 AM
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
2022-01-13 02:42 AM
I mean old program was maybe starting in 0x00FC0000 and new one in 0x00FE0000
2022-01-13 02:55 AM
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