Skip to content

Loading new firmware onto the MCU

Peter Wittich edited this page Sep 27, 2022 · 7 revisions

There are two ways to load a new firmware onto the TM4C. These instructions refer to

  1. If you have a SEGGER J-Link programmer connected, follow the instructions for reprogramming (ignore the locking part). If you are using Eclipse or some other debugger it might be as simple as starting a debugging session.
  2. If you do not have a Segger (normally not installed on the board) the alternative is to use the front panel cable to install a new binary via the boot loader. The executable is called sflash and can be built from the mcu_tools GitHub repository
sflash cm_mcu.bin -c /dev/ttyUSB1 

Here, cm_mcu.bin is the name of the binary that you want to load into the microcontroller, and the tty device is the device that you connect to to see the CLI. On the LNX machines, you can find sflash in ~pw94/src/mcu_tools/sflash. You must not be connected to the microcontroller UART via screen simultaneously. The sflash binary is also installed by default on the zynq.

#h2 Rev2 note On this version, you need to leave the UART w/o doing a reset before running sflash (C-x q on minicom).