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.

How to use the boot_serial example code in LM4F232

Dear all.

I have read this topic, but I can't figure out why I have error...

The following is my step.

1. Build boot_serial by CCS 5.3, it generates boot_serial.bin and boot_serial.out file.

2. Use LM Flash Programmer to [Erase Entire Flash], [Configuration] - [Quick Set] select [LM4F232 Evaluation Board].

3. Program boot_serial.bin, [address offset : 0x0], and then click the [hardware reset] button. Now I think the boot loader is in the board.

4. Use LM Flash Programmer, [Configuration] - [Quick Set] select [Manual Configuration], [Interface] Select [Serial- UART]

5.Program boot_demo2.bin, [address offset : 0x1000], and LM Flash Programmer show the following error.

From the error message, it seems the boot_serial is not correct? But why :-(

  • Hi,

       Check, Disable Auto Baud Support.

    -kel

  • Hello, Mark,

    I have tried disable auto baud support, but it has same issue.

  • Hi,

        Load boot_demo2 at the specified APP_BASE at your boot_demo2_ccs.cmd file. My copy of the .cmd file, the APP_BASE is 0x2800.

    -kel

  • Hi, Mark, Thank you for your help, it work.

    But I cannot understand why the error message shows "Failed to establish communication with the board". And the address should be APP_BASE 0x2800.

    In my opinion, I think after program the boot_serial into the flash at address 0x0000, the LM Flash Programmer could establish communication to the boot_serial although APP_BASE is not correct.

    I think there is something wrong about my boot loader opinion, could you give me some help? Thank you :)

  • Hi,

    kuolun tu said:
    But I cannot understand why the error message shows "Failed to establish communication with the board".

    I can't say why. It has been a long time, since I tried the boot_serial, with boot_demo2. It took me also a while, to make it work.

    kuolun tu said:
    In my opinion, I think after program the boot_serial into the flash at address 0x0000, the LM Flash Programmer could establish communication to the boot_serial although APP_BASE is not correct.

    You mean even if you load the boot_demo2 at the wrong address? The answer is no. You can find the address 0x2800 defined/used in both projects, at bl_configh.h of boot_serial and .cmd file of boot_demo2. Much better to read the Boot Loader Guide, to get more understanding. 

    -kel

    Click "Verify Answer" if any of my replies solves your problem.

  • Hi, Mark.

    Thanks for your help, I very appreciate. :-)

  • You are welcome.

    -kel