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.

TMS320F2800157-Q1: How to customize changes SCI-BootLoader

Part Number: TMS320F2800157-Q1
Other Parts Discussed in Thread: C2000WARE

Tool/software:

HI 

I checked the official relevant documents on SCI upgrade, and found that it could not fully meet my needs after reading it.

Here is the relevant-reference document link:快速实现C2000 串口程序升级 (ti.com.cn).

There are three places that I need to modify, but I don't know how to modify them.

          1、How do I change blocking to non-blocking?

                I need to change the data receiving mode of SCI to non-blocking and use polling mode.

                

          2、How to understand txt files in HEX format?

               Does it mean hex, still with address information, but txt file format?

               How does it differ from a normal hex file?

               After receiving the content in the txt text, how should the chip parse and identify?

                

          3、If the data received by the chip is erased and then written in sector, how can the received data be identified as sufficient for a sector according to the text format of txt?

  • Part Number: TMS320F2800157-Q1

    Tool/software:

    HI 

    I checked the official relevant documents on SCI upgrade, and found that it could not fully meet my needs after reading it.

    Here is the relevant-reference document link:快速实现C2000 串口程序升级 (ti.com.cn).

    There are three places that I need to modify, but I don't know how to modify them.

              1、How do I change blocking to non-blocking?

                    I need to change the data receiving mode of SCI to non-blocking and use polling mode.

                    

              2、How to understand txt files in HEX format?

                   Does it mean hex, still with address information, but txt file format?

                   How does it differ from a normal hex file?

                   After receiving the content in the txt text, how should the chip parse and identify?

                  

              3、If the data received by the chip is erased and then written in sector, how can the received data be identified as sufficient for a sector according to the text format of txt?

  • Hi Winni,

    Apologies for the weekend delay. In regards to your first question, the SCI does have a non-blocking equivalent as can be found in this device's driver library (driverlib source is in C2000Ware: {C2000Ware}\driverlib\f280015x\driverlib in the sci.c and sci.h files):

    However, if you are using the SCI bootloader found in the bootROM, you cannot change this. If you wanted to change this within a bootloader, you would have to use a custom bootloader approach. I will loop in another expert comment on the other questions. 

    Best Regards,

    Allison

  • Hi Winni,

    2. The SCI bootloader is looking for TI-TXT formatted files. It differs from a generated hex file in that the filetype is .txt instead of .hex, as well as the contents of the file including hexadecimal values only.

    3. The custom bootloader will recognize the received data by the address block it is associated with, before erasing that address block and programming the new contents. It will know the erase is sufficient by the length of the block given. This is handled by the Flash API.

    I'll link the CN version of our app note as well.

    SPRABV4.pdf

    Thanks and regards,

    Charles