Skip to main content
SKara.7
Associate III
January 12, 2022
Solved

Issues with flash programming -SPC584Bxx

  • January 12, 2022
  • 4 replies
  • 1492 views

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

    This topic has been closed for replies.
    Best answer by ODOUV.1

    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

    4 replies

    ODOUV.1
    ODOUV.1Best answer
    ST Employee
    January 13, 2022

    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

    SKara.7
    SKara.7Author
    Associate III
    January 13, 2022

    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
    January 13, 2022

    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
    January 13, 2022

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

    SKara.7
    SKara.7Author
    Associate III
    January 13, 2022

    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