AnsweredAssumed Answered

IAP via JTAG on LPC1754 #2

Question asked by Peter Van Hoomissen on Feb 22, 2017
Latest reply on Feb 22, 2017 by Peter Van Hoomissen

I am having a new problem in my writing of a programmer for a LPC1754. I am able to write to flash using IAP commands via the JTAG port and verify the results, but only for some memory locations. I can not seem to write to sector0, or odd 256byte pages in sectors1+. To clarify, I am able to write the data, but there are 1-10 single bit errors in the page. I verify that the data in my RAM stack is correct both before and after programming . I am using the PLL0 as my clock source divided by 2 and am passing 2000kHz CCLK to the copy ram to flash function. If any one has seen this behavior I am curious how you solved the problem.

 

I am also seeing that after a sector erase command that I need to release reset and then reenter the debug port to blank check the part. Blank checking after a sector erase never seems to return a response. I suspect that this is to the stack pointer or link register not being set with a proper value. I will probably try writing a HALT command into RAM and point to it unless there is a better way.

Outcomes