Flash Magic Forum

In-System Programming Support => LPC9xx/LPC9xxx => Topic started by: DieBaas on November 25, 2009, 10:34:58 PM

Title: Start Bootloader
Post by: DieBaas on November 25, 2009, 10:34:58 PM
I have been start the bootloader on a 938 with the "Start Bootloader - Send Break condition". 7200 baud rate.

1) Is there something that I must add in my code except form AUXR1.6=1. Because if I change something in my code, anything with the interrupts - not related to the UART- I can not get back in to bootloader. I'm using Keil complier.
2) What is the minimum code that i have to include to re-enter the bootloader? 




Title: Re: Start Bootloader
Post by: Andy Ayre on November 26, 2009, 11:50:33 AM
Starting the bootloader has nothing to do with reading flash memory. Please start a new topic for unrelated questions...

You need to enable the break detect and you need to configure the UART, for example 7200 baud.

I wouldn't recommend using the break condition to enter the bootloader because:

  - it relies on your firmware executing correctly, at least as far as configuring the UART

  - it might be possible to accidentally enter the bootloader if the RxD pin is held low for some reason
Title: Re: Start Bootloader
Post by: DieBaas on November 26, 2009, 09:44:27 PM
Ok. That great! What would be the best way to enter the bootloader then. With the DTR & RTS  method?
Would you recommend a USB-ICP Programmer? Correct me if I am wrong... but with a USB-ICP programmer you dont need a bootloader or dont need to use the micros bootloader?
Title: Re: Start Bootloader
Post by: Andy Ayre on November 27, 2009, 08:46:11 AM
I would recommend the USB-ICP interface from Future Designs because it allows access to the entire flash memory, plus uses USB.

Andy