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/TM4C123GH6PM: How to flash my code using bash shell/terminal?

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: EK-TM4C123GXL

Tool/software: TI C/C++ Compiler

I am using Tiva C Series TM4C123G TI LaunchPad EK-TM4C123GX Evaluation Kit. I already made my GNU makefile to build my project and deliver ARM binary file.

Can someone tell me how to flash my binary using USB through out bash terminal? I am using Windows 10 as my default OS.

Thanks in advance.

  • If you are using an EK-TM4C123GX Launchpad on Windows 10, why not use Code Composer Studio to do your code development and program the device? It is free, will be much easier and we can support you.

  • It's easier and that's true, but, I am working on a side project, I am making a build system that can compile and flash codes without needing any dependencies rather than that build system.

  • Have you considered using one of the bootloaders? If by USB, you mean the USB debug port on the EK-TM4C123GXL, consider using the serial bootloader that would use the virtual serial port on that USB connector. If you mean the native USB port of the device, you could use a DFU bootloader. When the parts are blank, they will run the ROM based bootloader by default. Once the parts are programmed, they will need some way (some signal) that will cause the application code to call the bootloader. There is information about the bootloaders in your TivaWare directory: C:\ti\TivaWare_C_Series-2.2.0.295\docs\SW-TM4C-BOOTLDR-UG-2.2.0.295.pdf.

    There are example bootloader utility tools in C:\ti\TivaWare_C_Series-2.2.0.295\tools. For a serial bootloader look in "sflash". For a USB DFU bootloader look in "DFUPROG".