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.

tm4c123gh6pge programming from a file

Other Parts Discussed in Thread: TM4C123GH6PGE

Hi all,


I would like my micro-controller (tm4c123gh6pge) to reprogram itself from a file (for example). Any ideas where to start?

Thanks

Elad

  • Hi Elad,

    The Tivaware has bootloader options for Serial, CAN and some others. This allows the Tiva to program itself by those communication interfaces.
    It's possible to customize it from there so maybe it can help you.

    Could you possibly give more details?
  • Dear Luís,

    Thank you for the quick reply.

    Basically, we would like to be able to update the software using a micro-SD card. Thus, we will place the new software hex/bin file on the memory card. Place it inside the card reader. "Hoping" that the unit will reprogram itself.

    I hope this information helps more to clarify what is it that we would like to do.

    Thanks in advance.

    Kind Regards,
    Elad
  • Well, the bootloader can use SSI0 so, if you have the info on the SD card correct, maybe it can work.
    Check out this:
    www.ti.com/.../spmu301a.pdf
  • Hello Elad,

    The Flash based boot loader uses the SSI in Slave mode. So connecting the sd_card will not work with the SSI boot loader as it expects it in Master Mode. You would need to update the flash based boot loader to reconfigure the SSI in Master mode and then check for SD Card Insertion. Once the SD Card is inserted, then check for the image name (could be a fixed image name) and copy it to the Flash and jump to it.

    Regards
    Amit