Hello Charles, Thanks a lot for the reply. [quote userid="93620" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1495866/tm4c129encpdt-jtag-programming-tm4c-failed-with-corrupted-flash-image/5765017#5765017"]The idea should work. The only thing I have in mind is about timing. What I mean by timing is that you need to be able to halt the processor and do your step 1 to 4 before the ROM bootloader has a chance to talk to the BOOTP/TFTP server. [/quote] You helped to verify that JTAG halt can work when the processor is running ROM bootloader in the previous comments. I understand that there is a chance the the before step 1) Halt the processor, ROM bootloader might have a chance to talk to BOOTP/TFTP server; however, I think that should not matter here, given the steps 1 to 4 will program the tm4c's flash, and there is another JTAG reset after step 4 which will set the PC to the start address. I think even if the ROM bootloader kicks in before step 1), this approach should put us back to boot from flash after the reset after step 4). My only concern here is that if the JTAG halt fails, then we will be back to our original issues. Do you in case know whether the JTAG halt is reliable on tm4c processor for this purpose? Hong
↧