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.

CCS/TMS320F28379D: custom Boot l,oader for TMS320F28379D

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

hi , 

 i just want to write a custom  boot-loader for  tms320f28379D.  boot-loader should run from flash  .This boot-loader application basically gets another application binary and it should load to flash . please let me know the procedure and how to write a simple  linker command file for  the both code

  • Part Number: TMS320F28379D

    Tool/software: TI C/C++ Compiler

    hi , 

    am using TMS320F28379D , i need to write a custom Boot loader . This boot-loader application basically gets another application binary throught SCI and it should load to flash . using TMS320F28379 flash api i have written the code but linking issues. can u help to solve  this problem . how to write a linker for bootloader and  Application .

    please let me know if you required  more information.  

  • Hi Arjun,

    Please refer the example "F2837xD_sci_flash_kernels" provided with C2000Ware. In this example, a UART connection is setup with a host using SCI, it receives an application for CPU01 in -sci8 ascii format to run on the device and program it into Flash.

    This in combination with the info provided in this forum post https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/872566 should help you to write the Boot loader.

    Can you share the linking errors that you are observing with your code?

    Best Regards

    Siddharth

  • hi siddharth,

       thanks for your reply ,  i hope your doing well .

       i just tried the example code from the "device_support\f2837xd"\examples\dual\F2837xD_sci_flash_kernels\cpu01"   while debugging am getting "Texas Instruments XDS100v2 USB Debug Probe_0/C28xx_CPU1 :" Target must be connected before loading program". Test Connection is getting Success only . if any change ?

    please reply as soon as possible.

    with regards 

    arjun

  • Hi Arjun,

    Can you let me know the steps that you have done before you encountered this error ?

    Did you launch the CCS debugger and connect to the target before loading the program?

    Best Regards

    Siddharth

  • Hi

    Yeah, connected the target and also verified the connection. I just need  to know that where i can find the memory map related documents for the same .

    1 how to initialisation the ram from the flash

    2 any other configuration need to do for my boot loader ?, Can i use the same ram section for boot loader and application?.

    With regards

    Arjun

  • Arjun,

    You can refer to section 6.3.1 in the datasheet which describes the memory map.

    You can initialize the RAM section using the fill option in the linker command file or you can do it in the code by writing the fill pattern to the specified RAM memory range.

    Bootloader receives the application code from SCI/USB to a buffer in RAM which is then programmed to Flash by the Bootloader, hence you cannot have the same section for boot loader and application.

    Best Regards

    Siddharth