Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/06/09 16:28
Read: times


 
#166806 - No Touch - No ISP ??
Responding to: ???'s previous message
My LPC935 still refuses to enter ISP wth the code below adapted from the FlashMagic link given in this thread. Incidentally I am using the MCB900 kit and trying with the jumper in RUN mode. This is what happens : I put the jumper in RUN mode - Press the ISP switch - I get the "Entered ISP mode" message - I releease the push button - the chip is reset by the WD timeout - BUT instead of entering ISP it proceeds with code execution !!
==========================
....
....
watchdog_init(); // Initialize WD and be ready
watchdog_stop(); // Stop the WD unless user presses ISP push button

if ( ISP_PB == 0) // User wants to program the flash
{
#pragma asm
push IEN0
mov R0, #0FFH
mov @R0, #96H
mov A, #02
mov R5, #01
mov R7, #03
lcall 0FF03H
pop IEN0 // Chip should now enter ISP for the next power on reset
#pragma endasm

display ( "ENTERED ISP MODE" );
msDelay(1000); // 1 sec delay
watchdog_start(); // Start the WD and allow it to reset the chip.
}
......
......
===========================
I know I am missing something. But which ?

Raghu




List of 14 messages in thread
TopicAuthorDate
LPC935 - No Touch            01/01/70 00:00      
   someone has posted the LPC equivalent ...            01/01/70 00:00      
   LPC935            01/01/70 00:00      
      Thanks Andy / Erik            01/01/70 00:00      
         No Touch - No ISP ??            01/01/70 00:00      
            My No_Touch seems simpler            01/01/70 00:00      
               Agreed            01/01/70 00:00      
                  How do you know you are in the bootloader?            01/01/70 00:00      
                     Also see this link            01/01/70 00:00      
                     Still trying..            01/01/70 00:00      
                        This works like Magic !            01/01/70 00:00      
                           Request            01/01/70 00:00      
                              Done as suggested            01/01/70 00:00      
                                 Many thanks            01/01/70 00:00      

Back to Subject List