Part Number:SIMPLELINK-MSP432-SDK
I configure the IP protected secure zones, enable JTAG&SWD lock and disable the Factory Reset through boot override flash mailbox on MSP432P4111.
The detailed steps are listed below:
SEC_ZONE0_PARAMS
- SEC_ZONE0_SECEN = 0u;
- SEC_ZONE0_LENGTH = DEVICE_IP_PROTECTION_ZONE0_LENGTH;
- SEC_ZONE0_START_ADDR = DEVICE_IP_PROTECTION_ZONE0_START_ADDR;
- SEC_ZONE_ENCUPDATE_EN = 0u;
- SEC_ZONE_DATA_EN = 0u;
- SEC_ZONE_AESINIT_VECT[0] = random 16bit key
- SEC_ZONE_SECKEYS[0] = random 16bit key
- SEC_ZONE_UNENC_PWD[0] = random 16bit key
JTAG_SWD_LOCK_PARAMS
- JTAG_SWD_LOCK_SECEN = 0u
- JTAG_SWD_LOCK_AES_INIT_VECT[0u] = random 16bit key
- JTAG_SWD_LOCK_AES_SECKEYS[0u] = random 16bit key
- JTAG_SWD_LOCK_UNENC_PWD[0u] = random 16bit key
FACTORY_RESET_ENABLE
- FACTORY_RESET_ENABLE = 0u
I want to unlock the JTAG&SWD and re-enable Factory reset after the operations.
All process are operated the registers of boot override flash mailbox through SimpleLink.
Referecnce:MSP432P4111_RM.pdf
Cherry Zhou:
Hi Dear,
We've got the issue and looking for the help from our experts on e2e. Because of the holidays, E2E design support forum responses may be delayed through Jan. 3. Thank you for your patience and sorry for any inconvenience.
Best,
Cherry
,
Cherry Zhou:
Hi,
MSP432P is discontinued and we have limited knowledge for this device. With that said, our expert finds these posts that will be helpful.
https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/919395/msp432p401r-how-to-unlock-swd-locked-msp
https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/918268/msp432p401r-error-connecting-to-the-target-error–261-0x0
https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/628249/msp432p401r-need-tool-to-do-factory-reset-for-the-msp432
,
Zihan KE:
Hi Cherry,
THX for your reply.
I find the post1&3 you provided is similar to my case, but I disable the Factory reset and lock SWD&JTAG in the meanwhile, so I can't do software factory reset to unlock the SWD (post1 solution) or enable factory reset though SWD (post2 solution). It's inconsistent
,
Cherry Zhou:
Hi,
We will try to look into it these days and please expect the delayed response.
Thanks.
,
Cherry Zhou:
Hi,
We wish we could explain the exact steps to perform a factory reset but knowledge about this device is really lacking as our experts have never worked on this discontinued device. With that said, we find below one method about performing factory reset. You can find the same in the TRM. Looks like there is another method to use the mailbox for factory reset though.
Also giving you a heads-up, our experts will be on vacation until Jan-3.
,
Zihan KE:
HI,
THX for your reply.
The method you offered may not work on my chip because I also locked JTAG&SWD interface. So any other suggested method?
,
Cherry Zhou:
Hi,
Please let me check with experts and will get back to you soon.
,
Cherry Zhou:
There was another thread discussing factory reset of the 432P – it may help!
e2e.ti.com/…/msp432-debuggers-msp432p401r-giving-error—cortex_m4_0-error-connecting-to-the-target-error–614-0x0-the-target-indicates-there-is-an-error-condition-from-a-previous-swd-request-clear-the-error-the-condition-and-try-the-swd-