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.

Serial Flashing

Hello, 

I have read a few forum posts of people asking how to flash the microcontroller code through serial.  I am using the SCI pins on the tms570ls hercules development board.

I found the Hercules_RM4_UART bootloader files online, and this guide: http://processors.wiki.ti.com/images/4/4c/UART_Bootloder_UG.pdf

However, with all of this information i am still kind of confused.  I realize i need to program thorugh JTAG, so something like: http://www.blackhawk-dsp.com/products/USB100.aspx would be required.  But before i purchase this, i would like to make sure i understand the process of flashing it correctly.

The bootloader project i found online is for ccs i believe, but when i try to build it i get many errors, such as:

could not open source file "Constants.h" bl_flash.c /Hercules_RM48_UART_Bootloader/src line 33 C/C++ Problem
but for 4 files total , also
could not open source file "Constants.h" bl_flash.c /Hercules_RM48_UART_Bootloader/src line 33 C/C++ Problem

So i am not sure if this bootloader is correct?

Finally, i know i would need to program the bootloader to the 0 offset of flash memory on the tms570, when i hook up some sort of JTAG emulator, and program through ccs, is this taken care of?  I am not crystal clear on that portion either.

If someone could explain the basics to me, or point me to a document that can, i would be greatly appreciative!

Thanks

  • Keegan,

    To program the Flash, you will need to first load a code to run from RAM. This code will perform two tasks.

    (1) Handle the communication with the the host via the I/O port you choose.

    (2) Program the data obtained from the host to Flash.

    I have forwarded your question to the bootloader developer.

    Thanks and regards,

    Zhaohong

  • Hi Keegan,

    The bootloader is looking for the header file constants.h which is located in F021 API folder. F021 API should be installed separately.

    Regards,

    QJ

  • I have the F021 API installed now and the same issue happens.  Also, it wasnt just that one file there were 4 others, that all appear to be header files.  I did install the flash api seen here:http://www.ti.com/tool/f021flashapi.

    Since the hercules board comes with its own jtag emulator, i do not need to purchase any other one correct?
    programming this bootloader on to the Hercules through code composer should then allow me to program the board through the serial pins correct? 

    Also, is the rest of what i described in the above message correct?

    Thanks!