Hi Alice,
Thank you for the reply. I actually tried that code early on in my testing. Here is the output:
Part ID is: 00008023
Unique Part ID is:0x20480C028055AE63012614110A14F5000D03
Enter UART ISP mode
This code stops at the same location in memory as mine did.
PC = 0F00025A, CycleCnt = 00000000
R0 = 00000000, R1 = 00000001, R2 = 000000FF, R3 = 00000000
R4 = 00000001, R5 = 00000000, R6 = 00000001, R7 = 10000738
R8 = FFFFFFFF, R9 = FFFFFFFF, R10= 0FFF07E0, R11= 00000000
R12= 00000015
SP(R13)= 10000338, MSP= 100006C8, PSP= 10000338, R14(LR) = 0F0003BD
XPSR = 61000000: APSR = nZCvq, EPSR = 01000000, IPSR = 000 (NoException)
CFBP = 02000001, CONTROL = 02, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 01
FPU regs: FPU not enabled / not implemented on connected CPU.
So calling Reinvoke ISP seems to be working. If I give it any other type than 1 (serial) it will exit. However it just hangs. This only happen when entering ISP through software. It would fine if I enter using the ISP pin. This makes me wonder if its a clock setup issue or something but i cant find any details on how to setup to call reinvoke isp other than "If using USART ISP mode, enable the clocks to the default before calling this command."