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.

TMS320F28379D: Bootloader in Flash

Part Number: TMS320F28379D


Hi everyone,

I am programing bootloader into Flash for my project. I have viewed your example code (F2837xD_sci_flash_kernels). I want to ask a question: After reset, How can my program run into Bootloader in Flash before get into main? What is the thing that I should change in linker command file to do this?

Please let me know as soon as possible.

Thanks,

Best regards,

  • Hi Nguyen Trong Tuan, 

    There are probably several ways of doing this...but you can consider the following methodology:

    1. Create two applications, namely,  the bootloader and the other would be your main application that you ultimately want to run.

    2. Create the bootloader application first with the following requirements:

    a. Bootloader app runs when device is configured for Flash boot. 

    b. Bootloader app waits for a reasonable period of time (say 1 min?) for a host download a new "main" application

    c. If not host communication, the bootloader launches an existing "main" application. 

    d. If a "main" application does not exist, it continues to spin in a loop waiting the host to deliver a new "main" applicaiton

    e. If the host starts downloading the application, the bootloader programs the new "main" application download/programming is done

    f. Once done, bootloader launches the main application

    g. The bootloader is located at the Flash boot location.

    h. The bootloader loads/programs the "main" application to a different location in Flash. 

    3. Create your main application.

    4. You can functionally test the bootloader itself and the main independently

    5. Integrate the bootloader with the main appl

    Hope the above gives you some ideas...here is some excellent training material that can help you with your TMS320F28379D development: https://training.ti.com/c2000-f2837xd-microcontroller-workshop?context=1137755-1139641-1137781  

    Please do not hesitate to reach out to us with additional questions. 

    Cheers!

    Krishna

  • Hi Krishna,

    Thanks for your reply. So the location of the Bootloader is defined by the user?

    I saw Bootloading 101 and the speaker said that we should take Bootloader in the same place with Flash Entry Point. So if my Bootloader locate in Flash Sector A, does it count for the same place with Flash Entry Point?

    Thanks, I hope for your reply!

    Best Regards,

  • Hi Nguyen, 

    Hope you have been able to resolve the issue with the information provided.  I will close this thread,  If you have additional questions, you can either re-open this thread or submit a new one.  

    Cheers! Krishna