This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Boot Loader not working

Other Parts Discussed in Thread: EK-LM3S8962

Hi there,

I am trying UART as the bootloader interface to update my firmware to my EK-LM3S8962, but with no luck. When I use LM flash programmer to update/download my program, I got an error message saying "Failed to establish communicatin with the board ....." What I have done is
1. load boot_serial to the flash at address 0x0000 using Keil via jtag
2. connect usb-to-rs232 cable to my computer, and connect rs232 to the EVB via an UART/rs232 adaptor.
3. try to download the firmware to the EVB at address of 0x800 using LM flash programmer.

I believe the rs232 transceiver should be fine since we have been using it. Is there anything I have done wrong? Please help me. Thank you
  • Make sure that you mass erase the entire device beforre you program the bootloader. If you have something other than 0xFFFFFFFF at address 0x800 (like something from a previous app), the bootloader will interpret this as a initial SP and PC and will try to jump to that location... the bootloader may not be active.
  • Hi Dan,

    Thank you for your reply. I actually had "erase the entire flash" checked when downloading the bootloader app. I just tried it again, but this time, I erased the entire flash before downloading the bootloader. Unfortunately, the results remained the same. Any idea what is wrong?

    By the way, I got an error when compiling the serial bootloader app saying "--- Error: Uswer Command terminated, Exit-Code = 1". I was able to compile it, but it just stopped working for some reason. Thank you

    Post edited by: lph65724, at: 2010/02/23 19:03
  • Hi Dan,

    The bootlaoder is working now. The problem was the application start address in the bootloader program is 0x1000 instead of 0x800. After I changed the address offset to 0x1000, it worked. However, I still can't update my firmware using bootloader. After I download the bootlaod and use it to load my firmware, I can't update the firmware. When I try to update my firmware, I get the same error message. Do you know what else I need to do to make it work? The following the command I have in my firmware. Thank you

    (*((void (*)(void))(*(unsigned long *)0x2c)))();
  • Hi Dan,

    The bootlaoder is working now. The problem was the application start address in the bootloader program is 0x1000 instead of 0x800. After I changed the address offset to 0x1000, it worked. However, I still can't update my firmware using bootloader. After I download the bootlaod and use it to load my firmware, I can't update the firmware. When I try to update my firmware, I get the same error message. Do you know what else I need to do to make it work? The following the command I have in my firmware. Thank you

    (*((void (*)(void))(*(unsigned long *)0x2c)))();