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.

TM4C123GH6PM: Firware Download from Flash

Part Number: TM4C123GH6PM

Hi,

Please help me with some example.

Currently I am using boot_serial Application to download firmware to controller, but when this serial communication breaks while downloading firmware, I need to re-flash boot loader which is problem for me.

I need system stay up if communication during firmware downloading breaks.

I want to Copy the firmware file to flash first as currently my firmware is using only 40% controller flash  memory so 60% is free , after complete download i want to run the downloaded firmware if it is valid.

Please suggest some example or correct method.

Thanks,

Pradeep Kumar

  • You should not have to reprogram the bootloader unless you are overwriting the bootloader when you are programming the application code. What is most likely happening is that the application is partly programmed. The boot loader then sees the start of the application and transfers control to the incomplete application code which subsequently hangs. By reprogramming the bootloader, you erase the partially programmed application code and prevent the bootloader transferring operation to it.

    One way to avoid this problem is to enable CHECK_CRC. With this option, the bootloader will not transfer execution to an application code unless the code passes a CRC check. If the application is only partially programmed (or incorrectly programmed) the CPU will continue executing the bootloader which will allow the user to reprogram the application. You do this by enabling the definition of the macro CHECK_CRC on line 189 of bl_config.h. More details are described in:

    C:\ti\TivaWare_C_Series-2.1.4.178\docs\ SW-TM4C-BOOTLDR-UG-2.1.4.178.pdf  on page 39, captured here for your reference:

  • Thanks cosby.

    I will try the solution.

    Thanks again.