Skip to content
This repository was archived by the owner on Jun 25, 2021. It is now read-only.

tutorial make

Tianshu Huang edited this page Oct 7, 2018 · 2 revisions

Make

Make is a Unix program used to automate building various software executables. When you call make on the command line, it searches for a file in the current directory called Makefile to execute.

RASWare comes with a makefile already that will work for literally all of your needs. Once you've written your program, simply call make. If you want to read a bit more about make and how it works (or maybe try to understand RASWare's makefile), you can try looking here or here. All you need to know for Robotathon is that makefiles are magic that can be invoked with make.

Make Accessories

Since the compiled code has to somehow make its way onto the TM4C, RASWare's make is a bit more than a simple gcc compilation.

To flash the code onto the board:

make flash

As is unfortunately custom, sins of developers long past mean that most of the time, the first flash fails with Error 1. Don't ask (I don't know the answer). As such you should make flash twice to be sure the code makes it onto the board:

make flash; make flash

Once you've flashed it on, run make uart to open the serial interface. NOTE: make uart should be run directly after make flash. While it is technically possible to make uart at any point after disconnecting and reconnecting the TM4C, in practice, this rarely works.

The entire process (assuming an active uart debug output) then becomes

make flash; make flash; make uart
Clone this wiki locally