Skip to content

Loading new firmware onto the MCU

Peter Wittich edited this page Jan 18, 2024 · 7 revisions

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

  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 uart 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 

(On the Zynq, it is installed by default and is in the CMS users' path.)

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.

Rev2 note

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