This minimal development environment for the Texas Instruments EK-TM4C123GXL. It is intended to provide a quick way to create and compile a C project for the TI TM4C123GH6PM MCU. The CMSIS headers are copied from Energia.
- The ARM GCC toolchain must be installed. The
bin
directory must be in yourPATH
. make
must be installed on the system. Linux users:sudo apt install build-essential
The files in this repo are intended to be used as a template.
Use the init.sh
script to create a new project:
init.sh /path/to/project
The /path/to/project
may be absolute or relative.
Move into the project directory and use make
to build:
make
Other targets like make clean
are supported for convienence.
A single "blink" example is provided to demonstrate application usage.
- Solder headers onto the unpopulated JTAG breakouts.
- Set the board's slider switch to "DEVICE".
- Power the board with the "DEVICE" USB
- Connect a Segger J-Link debug probe. Make the following connections:
J-Link | EK-TM4C123GXL |
---|---|
VTref | VBUS |
TDI | TDI |
TMS | TMS |
TCK | TCK |
RTICK | GND |
TDO | TDO |
RESET | RESET |
GND | GND |
- Flash and debug the program with the Ozone application.
- In the "New Project Wizard":
- Device: TM4C123GH6PM
- Target Interface: JTAG
- Host Interface
- Target Interface Speed: 1 MHz
- Program File: /path/to/project/build/project.out
- Peripheral register definitions can be provided to Ozone in the optional "Peripherals" field. You will need the TM4C123GH6PM's SVD file. The file may be found in this CMSIS-SVD repository.