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.

Programming TIVA TM4c129 ENCPDT using UART0

Other Parts Discussed in Thread: MAX232, EK-TM4C1294XL

Hi,

I have developed a board using the TIVA TM4C129 ENCPDT controller.

I am trying to load my binary file using the LM FLASH PROGRAMMER.

Following are the details:

1. Uart0 is used for loading the binary file.

2. Transceiver max232 is used to communicate with com port of PC and the TIVA controller.

3. External crystal is 25Mhz.

Problem faced are as below:

1. First i was unable to communicate with board using the UART0. LM flash programmer was showing the error

"Error: failed to synchronize the baud rate with the board."   if i used the auto baud feature.

2. If I disable the auto baud feature error is

"Error:failed to communicate with board.

3. Then suddenly once i was able to flash my binary to theTIVA controller.

4. But after loading once i am again unable to flash the board and getting the first 2 errors.

I have not configure the BOOTCFG register in the program which I was able to load once.Is there any issue related to that?

DId i need to check any hardware pin?

Also the program i load uses the UART0 , will it be issue?

I am not getting any response from the TIVA controller for auto baud command or the sync command which is sent from the LM flash programmer.

  • Hi Ankit,

        Are you using the Evaluation Kit or the Development kit which has TM4C129 microcontroller. See, at the user guide if you need to set some jumpers to use UART0.

    - kel

  • Thanks ,

    For the quick reply.

    I am using a board designed in house for a specific project.

    I used the DK-TM4C129X kit for development but i used the ICDI debugger with the board.

    As i dont have any other peripheral to load the application on my board . I can only use UART0 for the same.

    So please suggest me any procedure or configuration which i am getting wrong.

    If it is not possible using UART then what are the other ways ?

  • Hi Ankit,

        I suggest you try load .bin to your DK-TM4C129 using UART0 first. Then try at the UART0 of your custom board. This way if you make it work for DK-TM4C129, most probably it will also work at your custom board.

        I checked the users guide of DK-TM4C129 and UART0 pins are at J3.

    - kel

  • Hello Ankit

    Once the bin file is flashed via the UART the serial flash loader will not work. There are the following ways to make it work

    1. Erase the flash, reset the device and then start again

    2. Configure the BOOTCFG to detect a pin level for executing ROM Boot code, set the pin to the programmed level and reset the device. Now UART can be used

    3. Use a Flash based bootloader and compile the image at another location, and then download the code via UART

    Regards

    Amit

  • Thanks for the help,

    I tried using the DK-TM4C129X board also but the same result as i have programmed it before using ICDI.

    As Mr.Amit said i try to configure the BOOTCFG register and clear the EN bit in the same register.

    Then load the program using ICDI then try to program it using UART0 but still same result.

    What do i need to exactly configure in tht BOOTCFG register?

    Which pin need to set for the programmed level?

    How do i configure the BOOTCFG register?

    I am right now able to program my custom board using the EK-TM4C1294XL as debug out for my custom board but still i need to know to program the custom board using UART as the debugger will not be available at field area if application needs to be upgraded.

    Thanks again for all the help.

  • Hello Ankit,

    You would need to commit the BOOTCFG register. Just putting EN=0 is not sufficient as after a Power Cycle or Reset it would come back to the Reset value if the commit operation is not done.

    The commit operation process is specified in "Non-Volatile Register Programming-- Flash Memory Resident Registers" of the data sheet

    Regards

    Amit

  • Thanks Amit,

    That answers my question.

    Right now i am programming the custom board using the evaluation board as debug out.

    Will get back if got any issue using the uart0 configuration.

    Thanks again for the help