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.
I want to set the core in halt to execute the flash mass erase .
Here below my sequence:
if I try to read the DHCSR with NRST low I always read 0x00.
Could you please send me the sequence to halt the core?
Could you provide a me a logic sample of this sequence(such as saleae).
Thank you in advance.
Hi,
Why you need run mass erase? Do you encounter some issue here?
Thanks!
Best Regards
Johnson
Hi,
I need to erase the Firmware on the uC.
The NVM controller dosen't seem to work correctly when NRST is Low (I always read NVM register as 0x00).
Is it possible to erase the device while holding the NRST Low (whitout setting the core in Halt)?
Best regards,
Hi,
unfortunately the link seems not to be working.
Could you tell me the sequence to do a "DSSM Mass Erase" ?
Thanks,
Hi,
Have you try this method?
Step 1: Connect SWD and RST pin
Step 2: Open Target Configurations
Step 3: Launch
Step 4: Show all core:
Step 5: Connect DAP
Step 6: Mass erase:
This is the flow to generate DSSM Mass Erase sequence.
Thanks!
Best Regards
Johnson
Hi Johnson,
I can't use the programmer because I have to develop a driver for a mass production.
could you tell me what registers or what procedure to write to perform this DSSM Mass Erase
Thank you,
Hi Cinqueonce,
OK, I will consult others team to get DSSM Mase Erase sequence and register, then get back.
Thanks!
Best Regards
Johnson
Hi Cinqueonce,
I am not sure if you would like to know this waveform:
This sequence is capture by logic Analysis when I sent Mass Erase Command:
Thanks!
Best Regards
Johnson
Hi Johnson,
Thank you!
Can you send me directly .sal file(it's more easy to read swd access)?
Best regards,
Hi Johnson,
I went into the capture at the same place as you in the previous message screen (+11s:727ms:700us), but unfortunately the same messages are not present.
Could you point me to where that command is sent?
It seems the program do something at the beginning with this command:
WData 0x02000000 reg SELECT bits APSEL=0x02, APBANKSEL=0x0, PRESCALER=0x0
WData 0x0000020C reg TAR
WData 0x00000000 reg CSW bits DbgSwEnable=0, Prot=0x00, SPIDEN=0, Mode=0x0, TrInProg=0, DeviceEn=0, AddrInc=Auto-increment off, Size=Byte (8 bits)
WData 0x00A00003 reg DRW
WData 0x00000000 reg RDBUFF
WData 0x00000000 reg DRW
The program end when read "0x0D":
WData 0x00000000 reg DRW
WData 0x0000000D reg RDBUFF
WData 0x0000000D reg RAZ_WI
Could you tell me what register it accesses and what it writes or waits for?
Best regards,
Hi Cinqueonce,
I just run mass erase command and capture those data to you.
And now, finnal sample for MSPM0L1304 should be available, maybe you can do your test in finnal sample.
Thanks!
Best Regards
Johnson