Resources
Here are various resources for the course.
How To
Hardware References
- Launchpad Data Sheet (this is the important one)
- Launchpad user guide
- Cortex M4 - Assembly Reference
- Cortex M4 - Reference Manual
- Assembly Reference
Software
- IDE: Texas Instruments Code Composer Studio™ (CCS)
- Serial Client
- Windows: PuTTY
- Mac: You can use the builtin
screen
command
Serial Communication How To
- Windows: How to use PuTTY to connect your board using serial communication
- Mac: How to use
screen
to connect your board using serial communication- Open a terminal
- Run
ls /dev/tty.usb*
and look for the name of the serial port. (It should be something like/dev/tty.usbmodemXXXXXXXXX
) - Using that name, run
screen /dev/tty.usbmodemXXXXXXXXX 115200
Differences Between CCS and Keil
The examples in the course textbook were originally designed for an IDE named Keil uVision. We, however, are using TI’s Code Composer Studio. The course stuff have done our best to make things as compatible as possible, but there are some differences:
- For a discussion of the differences in assembly formats, please see this resource from the book’s author.
- In CCS, registering an interrupt handler requires modifying
tm4c123gh6pm_startup_ccs.c
.- Add a prototype for your handler around line 58. (For example,
extern void myAwesomeHandler(void);
) - Find the correct entry in the pfnVectors table and change
IntDefaultHandler
to name of your function. (For example,myAwesomeHandler
.) - This will most likely come up when adding either a SysTick handler or a Timer0A handler.
- Add a prototype for your handler around line 58. (For example,