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.

Tiva Bootloader

Other Parts Discussed in Thread: TM4C123GH6PM

Hi,

I am currently working on my project with TM4C123GH6PM Launchpad. Now I want to develop a single board for my entire project. Where can I get the bootloader code for TM4C123GH6PM?

Kindly direct me.

Thanks in advance

  • Hi,

       You, can read info about the boot loader at the Tivaware Boot Loader Users Guide. Search this forum also regarding boot loader.

    - kel

  • yeah i saw that notes. but being a beginner, i am not able to understand that thoroughly. is there a sample code on this, so that i can compare and study 

  • Hi,

        Do a search in this forum for bootloader. This topic has been discussed several times in the past, and you can learn from those posts.

        Also there are several bootloader examples at Tivaware, such as boot_serial that works with either boot_demo1 or boot_demo2.

    - kel

  • hi...

    To make the bootloader working for your application rather than the example, below mentioned is the way to do it.

    if you refer the boot_demo1 & boot_demo2 code, you will find  a function which calls Bootloader.

    You can find this function just above your while(1) loop. 

    you need to copy paste that routine into your application.

    next step will be: If you are using the Code Composer Studio, use point 1 OR if you are using Keil, use point 2.

    1) For CCS users, you need to change the application base address to the program offset addr in the .cmd file in the below

    #define APP_BASE .

    2) For Keil users, follow the below step: U need to change the linker script.

    go to the linker script file in your application .srt file . To modify it, go to Project -> Options for Target "appln name", at linker tab, edit appln name .sct. Modify the file as below. Build the project after modifying the .sct file.

    LR_IROM 0x00002800 0x00040000
    {
    ;
    ; Specify the Execution Address of the code and the size.
    ;
    ER_IROM 0x00002800 0x00040000
    {
    *.o (RESET, +First)
    * (InRoot$$Sections, +RO)
    }

    ;
    ; Specify the Execution Address of the data area.
    ;
    RW_IRAM 0x20000000 0x00008000
    {
    ;
    ; Uncomment the following line in order to use IntRegister().
    ;
    ;* (vtable, +First)
    * (+RW, +ZI)
    }
    }

    --------------------------------------------

    Then follow the regular step through LM Flash Programmer & load the .bin file. 

    THIS WILL WORK FOR SURE..

    Regards

    Mandar