This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Concerto F28M35 field upgrade process cause flash damage on several boards

Hi,

I do my field upgrade test on custom concerto F28M35 boards. Firstly, I load the bin file into SDRAM through UART, then I erase and wright flash using F201 API. Actually, I succeed every time, the MCU can do cold start and upgrade software.

 

Till someday, I got trouble load flash using Debuger xds100v3 and console shows that 

I try to connect my Debuger and erase flash, I found that sector N can be erased properly but it always fails on sector M which bother me a lot. Whats more is that this happend on almost every board I tried this. 

Also I am sure that it does no business with CSM.

Here is my program, hope someone can give me some suggestion!

2465.M3_online_upgrade.zip

  • Hi,

    I see that this question is about erasing sector M.  Last week, you posted a question that you are not able to erase sector N.  Did that get resolved?  I did not see your reply on that and hence asking.  

    Regarding this thread:  Did you program GRABSECT locations of zone1 or zone2 with any data?  If yes, can you tell me the value that you programmed?

    Thanks and regards,

    Vamsi

  • Hi Vamsi
    I do not know the GRABSECT location. And the next day I can erase these flash successfully. I guess the cause is from the logic to decide which sector need to be erased for use. Maybe I wright flash before erase caused this problem.
    Thanks.
    Regards
    hhelib
  • Hi,

    Looks like you fixed your code.

    Regarding GRABSECT:  I would suggest you to refer to TRM to know about GRABSECT.  Using these fields, you can assign a sector to either zone1 or zone2.  Once you assign a sector to a particular zone, you can erase/program that sector only by executing API out of that zone's RAM only.  It is better to know about this since the GRABSECT fields are in Flash and you might accidentally program an unintended value if you don't know about this field.    

    Thanks and regards,

    Vamsi

  • Hi,
    Thanks for your kind advice
    Regards
    hhelib