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.

Bootloader LM4F232H5QD

HI,

I am working on the Boot loader of LM4F232H5QD. Here i am using UART0 for downloading the code to the LM4F232H5QD board. Now, i want to change the UART0 to UART2. I have made some changes in bootloader code to use UART2. But it is not working. Please anyone tell me the changes that i have to make in bootloader code to use UART2.

Thanks for your help.

-Bijo

  • Hi,

     

    You can try with the attached, all modifed have been defined with BOOT_UART2.

     

    Winston

    1731.boot_loader.zip

  • Hi Wintson,

    I have tried the code that you have attached. Still, the same problem exist. The application .bin file is not getting dumped through UART2.

    -Bijo

  • Hi Bijo,

    A couple of clarifying questions. Are you using the EK-LM4F232 or are you doing a custom board with just the part? I assume you are trying to use the UART Bootloader (as opposed to USB, ICDI, or FTDI), is this correct? What program are you using to load the code to the board (i suggest LMFlash Programmer)?

    Please let me know the answers to these questions so i can help you further.

    best regards,

    -Austin

  • Hi Bijo,

     

    You can check with the attached project, you should pay attention below items.

    1. you should use the LM Flash programer.

    2. you also should confirm your UART2 pins configure according your hardware.

    3. Your target APP address should be matched with the APP_START_ADDRESS in the bl_config.h

     

    Winston

    7853.Space.zip

  • Hi Austin,

    I am using LM4F232H5QD Evaluation Board and LM Flash programmer to download the code to the device.

    First, i am loading boot_serial code Using ICDI. Then, i  am trying to load blinky code using serial(UART). By default UART0 is used. I am trying to change UART0 to UART2

    _Bijo

  • Bijo,

    Only UART0 is connected on the USB. To use UART2 you would need to physically break out the UART2 pins and then run them through a RS232 to USB converter. The default configuration does not support using UART2 as the boot loader port.

    -Austin

  • Austin,

    I have wired out the UART2 pins PD6 and PD7. Then only I've tried to program the target device serially(UART2).

  • Bijo,

    Assuming you have the necessary hardware to program over the UART (ie a RS232 to USB converter, etc) then it should work. Can you verify that you have UART output coming over the pins using either a logic analyzer or loopback to the PC and view with Putty / TeraTerm?

    If you can verify that you are indeed writing valid UART to the board on UART2 then i will try to replicate the issue you are having.

    -Austin

  • Two common pitfalls "trap" many when moving away from UART0:

    a) UART0 (normal pins: PA0/PA1) "default" to UART mode - thus may not receive "full" SW set-up/config - which will guarantee failed results when "migrating" UART0 code to any other UART instantiation.

    b) UART2 - when employing pins PD6/PD7 - bumps against PD7's "default" to NMI.  PD7 must first be unlocked - only then may be config'ed as UART.