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.

Compiler/TMS320F28069M: SCI boot for LaunchXL-F28069M

Part Number: TMS320F28069M
Other Parts Discussed in Thread: LAUNCHXL-F28069M, , MOTORWARE

Tool/software: TI C/C++ Compiler

I have gone through the sections for bootloading TMS320F28069M (LaunchXL-F28069M board) from SCI. Here is the cmd file that I am using to direct the hex2000 utility to make a bootable hex file from COFF.

lab1.out /* Input COFF file */
--ascii /* Select ASCII format */
--map=lab1.map /* Specify the map file */
--outfile=lab1.hex /* Hex utility out file */
--sci8 /* Specify the SCI 8-bit boot format */

SECTIONS
{
 .text: paddr=BOOT
 .cinit: paddr=BOOT
 ramfuncs: paddr=BOOT
 .econst: paddr=BOOT
 IQMATH: paddr=BOOT
 csm_rsvd: paddr=BOOT
 codestart: paddr=BOOT
 csmpasswds: paddr=BOOT
}

I can run hex2000 with this cmd file and get a hex file. I am running this on lab01 from Motorware. I have ordered the board and it should arrive next week.

Is this .cmd file ok ? I have gone through TMS320C28x Assembly Language Toolsv18.1.0.LTS which provides basic guidelines for making a bootable hex file. I have added SECTIONS without a clear understanding of how it works. I am operating on the understanding that once some host will send the generated hex file to F28069M through SCI, it should work normally. Can you see anything else I need to change in this ?

  • Hello

    For a bootloader, you want to use the boot table format (see chapter 12.11 of TMS320C28x Assembly Language Toolsv18.1.0.LTS).
    What you want doesn't actually need to setup "sections". In the linker you can just have the following:

    test.out /* Input COFF file */
    --ascii /* Select ASCII format */
    --map=test.map /* Specify the map file */
    --outfile=test_sci8.hex /* Hex utility out file */
    --boot /* Consider all the input sections as boot sections */
    --sci8 /* Specify the SPI 8-bit boot format */

    Best regards
    Chris
  • Thanks !

    So I used this script and made a hex file for testing SCI boot.

    I do not have any utility for transmitting all of the file over serial port but I was able to do basic tests such as confirm autobaud lock, send key values, read and discard 8 reserved words etc and all of it works. I also checked that in case of error (wrong key value etc) it jumped to flash and executed original program.

    So things look good for now and I think this can be marked as resolved. I'll get in touch if I have any further questions.