Hey experts,
unfortunately we connected in our product pin P2[10] of LPC4078 to a signal which can be LOW at startup for appr. 10ms which starts ISP programming mode what I checked with debugger and a oscilloscope.
As described in datasheet after startup when VCC is present and a rising-edge on RESET occurs (=general startup), pin P2[10] is sampled for 3ms and then it decides whether starting ISP programming mode or starting user code.
How can I avoid this behavior?
Since we want to avoid a pcb redesign we're searching for a software solution.
In datasheet I read for CRP3:
This is similar to CRP2, but ISP entry by pulling P2[10] LOW is disabled if a valid user code
is present in flash sector 0.
This mode effectively disables ISP override using the P2[10] pin. It is up to the user’s
application to provide for flash updates by using IAP calls or by invoking ISP with UART0.
Until now we only use CRP2 because we want to be able to erase flash by SWD and re-flash a completely new program.
I know what "invoking ISP" with IAP calls means but it's written with "or". Is there a difference of "IAP calls" and "invoking ISP"? (For me it's the same and belongs together)
IAP calls are very uncomfortable and we don't want to use it.
Is there another possibility to disable ISP at startup?
In the following flowchart there is a decision "Watchdog Flag Set?" What does "yes - flag set" mean and how does it work? Is there a possibility to bypass "Enter ISP Mode?" with this Watchdog Flag Set?
ryan_jacky_2-1707299424934.png
Or does "Watchdog Flag Set" mean that a watchdog reset occured and because after restart it's not a normal restart the system directly executes user code to handle and evaluate the WD occurance and there's no need for ISP because ISP is only needed on regular POR startups?
I found this graphic:
ryan_jacky_3-1707299838702.png
Would there be another possibility, e.g. to delay complete startup process for some milliseconds so that our external signal on P2[10] is high and ISP won't start?
Or are there some "fuse bits" available as on Microchip µC to disable specific features (like ISP-feature)?
What would you suggest?
Thanks in advance for some hints and proposals.