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.

Require Modification in bootloader of TIVA.

Other Parts Discussed in Thread: UNIFLASH, LMFLASHPROGRAMMER

Hi,

I require to modify the bootloader code ( related to UART Mode update) .

Where can I get the Source Code and how can I compile it and flash the updated bootcode  for TIVA ?

Thanks,

Sanchit

  • Hello Sanchit,

    Which device TM4C123 or TM4C129 are you using? Please note that the ROM boot loader cannot be modified. The only thing you can do is run the Flash based boot loader (which is why I asked for the device type)

    Regards

    Amit

  • Hi Amit,

    The device is TM4C129 TIVA C Series .

    actually, there is UART Bootloader Update Code, I want to add header and checksum verification before the bootloader starts downloading the firmware and updating it.

     

    Thanks,

    Sanchit

  • Hello Sanchit,

    So you would need to do a flash based bootloader where all pre-checks would need to be done. You can use the example in TivaWare-2.1.0

    C:\ti\TivaWare_C_Series-2.1.0.12573\examples\boards\dk-tm4c129x\boot_demo_uart

    as a starter for doing the same.

    Regards

    Amit

  • Hi Amit,

    How we can compile the bl_*** files for the UART Bootloader case ?

    Can we compile it in CCS and where can we get the required toolchain for  that ?

     

    One more question:
    when I update the application using TIVA UART bootloader and sflash applucation . I have to give following command:

    sflash  -c [COM] -d -l [file name] -b [buad rate]

    where -l denotes the bootloader file name , but I give the applucation name .

    It gets downloaded perfectly.

    Does it not overwrite the boot code , since it updates at 0x0000.000 address which is bootcode address ?

     

    Thanks,

    Sanchit Mehra

     

  • Hello Sanchit,

    Yes, you can modify the files, but please note that they will not be modified in the workspace but in the TivaWare installer.

    If you do sflash.exe -help it will give a better explanation of the options.

    I generally use the LMFlashProgrammer in UART Download mode or UNIFLASH for UART based downloads.

    Regards

    Amit

  • Hi Amit, 

    Then I have to modify the bootloader files located in here : 

    C:\ti\TivaWare_C_Series-2.0\boot_loader

    So, does this files becomes part of the application , when the application code is compiled and flashed ?

    How can we program the flash bootloader , if I change the bootloader files in the tivaware ?

    Regards,

    Sanchit Mehra

  • Hello Sanchit,

    The modification to the code will be reflected in the Flash Boot Loader. The boot loader files are not a part of the application code as it is compiled separately as another project

    Regards

    Amit

  • Hi Amit,

    Can you brief me about how to compile the flash bootloader files using another project ?

    and how can it be flashed ?

    Is there any document explaining about its separate compilation?

    Regards,

    Sanchit  Mehra

  • Hello Sanchit,

    The projects are compiled as independent projects, just the way you would have different projects.

    1. The boot loader can be flashed using JTAG

    2. The application code can then be compiled and the bin file loaded using UART interface using LMFlashProgrammer.

    Regards

    Amit