I saw that the unlock for MSP432 is not supported into JLink tools. I saw in another thread that this feature will be done in future...
[SOLVED] MSP432E flash unlocking
Until then, I will like to have some help to do it by script in JLink.
First, I found the recipe to unlock in SLAU723-October2017 section 3.3.4.3.
I need to switch between JTAG-to-SWD and SWD-to-JTAG 5 time each.
Is there already a function to do those switches between mode? Would be easier this way...
If not, I will need to do this:
1. Send at least 50 TCK / SWCLK cycles with TMS / SWDIO High to ensure that both JTAG and SWD
are in their reset states.
2. Send the 16-bit SWD-to-JTAG switch command, 0xE73C, on TMS/SWDIO.
Could it be the following? Or I'm completely wrong...
For step 1:
JLINK_JTAG_WriteClocks(50)
Is TMS will be high?
or
JLINK_JTAG_Write(0xFFFF, 0xFFFF, 50)
but I can only mask 32bit?
Can someone help?
Thanks,
Germain Hebert
[SOLVED] MSP432E flash unlocking
Until then, I will like to have some help to do it by script in JLink.
First, I found the recipe to unlock in SLAU723-October2017 section 3.3.4.3.
I need to switch between JTAG-to-SWD and SWD-to-JTAG 5 time each.
Is there already a function to do those switches between mode? Would be easier this way...
If not, I will need to do this:
1. Send at least 50 TCK / SWCLK cycles with TMS / SWDIO High to ensure that both JTAG and SWD
are in their reset states.
2. Send the 16-bit SWD-to-JTAG switch command, 0xE73C, on TMS/SWDIO.
Could it be the following? Or I'm completely wrong...
For step 1:
JLINK_JTAG_WriteClocks(50)
Is TMS will be high?
or
JLINK_JTAG_Write(0xFFFF, 0xFFFF, 50)
but I can only mask 32bit?
Can someone help?
Thanks,
Germain Hebert