??? 12/31/06 05:45 Read: times |
#130253 - I to am having issues with ISP Responding to: ???'s previous message |
Hi There,
I have managed to get into to ISP using Erik's NoTouch (thanks for this) on an LPC925 and it enters ISP mode perfectly - at least I think it does I have a serial command that disables interrupts, runs the notouch routine and waits for the WDT to reboot with the new boot address of 0x1F00 (which is what the datasheet says) When I start flash magic, I can start a terminal session and everything I type is echoed no worries, however I am unable to read any of the ISP commands presented in the flash magic ISP menu, it comes back with an error message "Operation Failed. (Reading Signature)" I can sniff the serial port and can see that the uController is indeed responding with heaps of data (see below) 30 0 Answer: 31/12/2006 18:15:42.015179264 (+0.0000000000 seconds) 30 0 Request: 31/12/2006 18:15:42.015179264 (+0.0000000000 seconds) 30 0 Answer: 31/12/2006 18:15:42.015179264 (+0.0000000000 seconds) 30 0 Request: 31/12/2006 18:15:42.025193664 (+0.0100144000 seconds) 30 0 Answer: 31/12/2006 18:15:42.025193664 (+0.0000000000 seconds) 30 0 Request: 31/12/2006 18:15:42.025193664 (+0.0000000000 seconds) 33 3 Answer: 31/12/2006 18:15:42.025193664 (+0.0000000000 seconds) 30 0 Request: 31/12/2006 18:15:42.025193664 (+0.0000000000 seconds) 31 1 Answer: 31/12/2006 18:15:42.025193664 (+0.0000000000 seconds) 30 0 Request: 31/12/2006 18:15:42.025193664 (+0.0000000000 seconds) 30 0 Answer: 31/12/2006 18:15:42.025193664 (+0.0000000000 seconds) 33 3 Request: 31/12/2006 18:15:42.035208064 (+0.0100144000 seconds) 45 E Answer: 31/12/2006 18:15:42.035208064 (+0.0000000000 seconds) 31 1 Request: 31/12/2006 18:15:42.035208064 (+0.0000000000 seconds) 43 C Answer: 31/12/2006 18:15:42.035208064 (+0.0000000000 seconds) 30 45 43 52 0ECR Request: 31/12/2006 18:15:42.045222464 (+0.0000000000 seconds) 3A : Answer: 31/12/2006 18:15:42.045222464 (+0.0000000000 seconds) 31 1 Request: 31/12/2006 18:15:42.055236864 (+0.0100144000 seconds) 30 0 Answer: 31/12/2006 18:15:42.055236864 (+0.0000000000 seconds) 35 5 Request: 31/12/2006 18:15:42.055236864 (+0.0000000000 seconds) 31 1 Answer: 31/12/2006 18:15:42.055236864 (+0.0000000000 seconds) 0D . Request: 31/12/2006 18:15:42.055236864 (+0.0000000000 seconds) 30 0 Answer: 31/12/2006 18:15:42.055236864 (+0.0000000000 seconds) 0A . Request: 31/12/2006 18:15:42.055236864 (+0.0000000000 seconds) 30 0 Answer: 31/12/2006 18:15:42.065251264 (+0.0100144000 seconds) 3A : Request: 31/12/2006 18:15:42.065251264 (+0.0000000000 seconds) 30 0 Answer: 31/12/2006 18:15:42.065251264 (+0.0000000000 seconds) 30 0 Request: 31/12/2006 18:15:42.065251264 (+0.0000000000 seconds) 30 0 Answer: 31/12/2006 18:15:42.065251264 (+0.0000000000 seconds) 31 1 Request: 31/12/2006 18:15:42.065251264 (+0.0000000000 seconds) 30 0 Answer: 31/12/2006 18:15:42.065251264 (+0.0000000000 seconds) 30 0 Request: 31/12/2006 18:15:42.065251264 (+0.0000000000 seconds) 33 3 Answer: 31/12/2006 18:15:42.065251264 (+0.0000000000 seconds) 30 0 Request: 31/12/2006 18:15:42.065251264 (+0.0000000000 seconds) 31 1 Answer: 31/12/2006 18:15:42.075265664 (+0.0100144000 seconds) 30 0 Request: 31/12/2006 18:15:42.075265664 (+0.0000000000 seconds) 30 0 Answer: 31/12/2006 18:15:42.075265664 (+0.0000000000 seconds) 30 0 Request: 31/12/2006 18:15:42.075265664 (+0.0000000000 seconds) 45 E Answer: 31/12/2006 18:15:42.075265664 (+0.0000000000 seconds) 30 0 Request: 31/12/2006 18:15:42.075265664 (+0.0000000000 seconds) 43 C Answer: 31/12/2006 18:15:42.075265664 (+0.0000000000 seconds) 33 31 30 45 310E Port closed Yet for some reason even though it appears that I have entered ISP mode, my device is not responding. I have included the ISP code from the Philips (NXP) AN10337, so that it is always included. The link is http://www.nxp.com/acrobat_d...0337_1.pdf The source is http://www.nxp.com/files/mar...20code.zip I have a Raisonance IDE and Acqura PDS900 Emualtor, so I can reflash the device with ICP no issues, of course, this is not what I want to do once the device is in the field. My No touch file is $include (REG922.INC) NAME NOTOUCH925 ; PGM_MTP EQU 0FF03H PGM_MTP EQU 01F00H ?PR?no_touch925?NOTOUCH925 SEGMENT CODE public no_touch925 ; void no_touch925(){ RSEG ?PR?no_touch925?NOTOUCH925 no_touch925: push IEN0 ;save EA Status clr EA ;disable int's mov R0, #0FFH ;IAP authourisation key first mov @R0, #96H mov A, #02 mov R5, #01 ;write bootstat with 01H mov R7, #03 lcall PGM_MTP pop IEN0 ;restore EA status RET ;} ; END of no_touch925 END And I am calling it like this if (reg_to_set == REG_REFLASH){ //ok we are going to prepare for ISP code to come down the serial EA = 0; //port - hold on here goes no_touch925(); //call the ISP entry routine while(1); //hang here until the watchdog reboots us //then were in ISP mode } of course the WDT is already running so this simply reboots the device. All credit to the authours of the original code. Any help is appreciated, regards Marshall Brown |
Topic | Author | Date |
89lpc922 programing | 01/01/70 00:00 | |
NoTouch | 01/01/70 00:00 | |
Typo | 01/01/70 00:00 | |
89lpc922 programing | 01/01/70 00:00 | |
ISP and IAP | 01/01/70 00:00 | |
89lpc programing![]() | 01/01/70 00:00 | |
I to am having issues with ISP | 01/01/70 00:00 | |
Solved - My ISP issues | 01/01/70 00:00 | |
ISP and IAP Understanding LPC925 | 01/01/70 00:00 |