Getting Started with EK-TM4C123GXL LaunchPad
- Add CodeLite public key to avoid warnings from apt
- sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
- Add Codelite Repositories
- sudo apt-add-repository 'deb http://repos.codelite.org/ubuntu/ trusty universe'
- You then need to update your repositories.
- sudo apt-get update
- You should now be able to install CodeLite by doing:
- sudo apt-get install codelite
- Install ARM GCC Build Settings
- Install EK-TM4C123GXL ARM GCC Template
Create New Workspace
- To create a new workspace in codelite, select File-->New-->New Workspace
- In the Select New Workspace Type Dialog Box, Select C++ and click OK
- Next, Select the Folder where you want to create new workspace and type name for it.
Create New Project
- Click on the Newly created workspace, Select File-->New-->New Project
- In the New Project Wizard, expand Others Category from Template and Select ek-tm4c123gxl-arm-gcc template
- Type a name for the Project and click Next
- Select Project toolchain as arm gcc and Debugger as GNU GDB Debugger
- Click Finish
- Select Plugins-->External Tools-->Configure External Tools ...
- Click on the New... Button
- Fill in the fields as follows:
- Tool ID: Choose from the drop-down box
- Name: OpenOCD
- Tool Path: Click on the ... button, browse and select openocd binary folder (ex: ~/openocd-0.9.0-bin/openocd)
- Working Directory: Click on the ...button, browse and select openocd folder (ex: ~/openocd-0.9.0-bin)
- Arguments: --file board/ek-tm4c123gxl.cfg
- Check Capture process output
- Click OK
Connect EK-TM4C123GXL LaunchPad Board to PC
The TM4C123GXL LaunchPad Board ICDI USB port (marked DEBUG and shown in the picture below) is a composite USB port and consists of three connections:
- Stellaris ICDI JTAG/SWD Interface - debugger connection
- Stellaris ICDI DFU Device - firmware update connection
- Stellaris Virtual Serial Port - a serial data connection
Using the included USB cable, ► connect the USB emulation connector on your evaluation board (marked DEBUG) to a free USB port on your PC. A PC’s USB port is capable of sourcing up to 500 mA for each attached device, which is sufficient for the evaluation board. If connecting the board through a USB hub, it must be a powered hub.
Make sure that the power switch in the upper left hand corner of your board is in the right-hand DEBUG position as shown:
Select Plugins-->External Tools-->OpenOCD