Tool/software:
Good morning TI team
In my project, I am using MSPM0C1103 micro-controller with the following setup:
- IAR Embedded Workbench IDE;
- J-link (by SEGGEER);
In the production software version, I had to enable the following protections:
- Custom restrictions (Security Levels 1)
- App Debug Policy (disabled)
I did it to avoid someone would be able to read my software by any development programmer. In this case, I was able to factory reset the uC by J-link (by SEGGEER) after a question (opened in TI forum).
Mr. Jan Bai sent me a script to do factory reset with J-Link (by SWD). It worked !!! (see the link: https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1491828/mspm0c1103-q1-pwm-timer-timg8-in-ccp0-doesn-t-work-when-the-vref-voltage-is-read-by-adc-channel-n-12)
Unfortunately, I had to change a thing in my software and now I am not able to do any factory reset by J-link (by SEGGEER). In particular, to pass some immunity EMC tests, I had had to reconfigure the NRT pin like Digital output. So, in final application software, NRT pin is not used like Reset pin but it is used like DO. In this situation, with the writing/reading Flash protection (like above) and without NRT pin enabled like reset pin (only difference from before), I am not able to do a factory reset.
Is it only necessary to change the script of Mr. Janz Bai or no longer using the RST reset pin, I have completely lost the ability to do a factory reset by J-link (and SWD)?
In attached, you can find the scripting of Mr. Janz Bai.
Thank you very much for your support.
Regards
Michele