Author Topic: Start Bootloader  (Read 5455 times)

DieBaas

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Start Bootloader
« 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? 




« Last Edit: November 26, 2009, 11:50:52 am by Andy Ayre »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Start Bootloader
« Reply #1 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
Embedded Systems Academy, Inc.
support at esacademy dot com

DieBaas

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: Start Bootloader
« Reply #2 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?

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Start Bootloader
« Reply #3 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
Embedded Systems Academy, Inc.
support at esacademy dot com