: GCC Tools for TI TM4C123GXL MCU
This is a gcc tools for embedded system projects with TI TM4C123GXL Microcontroller on Mac OS and Linux. We hate IDEs.
brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi
Run
arm-none-eabi-gcc --version
to confirm your installation.
You might run into problems when arm-none-eabi-gcc command is not found after installation. Try
brew link gcc-arm-none-eabi
see what homebrew tells you to fix linking problem.
NOTE: The old magic command
brew cask install gcc-arm-embedded
does not work anymore. They removed it from cask. Put it here in case you are wondering or you are trying to use UT-Rasware installation guide.
brew install lm4tools
brew install open-ocd
Please refer to Josh Minor's Linux set up script
After the installation, you should run the test blink project by running make
in the project dir proj/_blink
to make sure it compiles properly. You need to run make clean
when you try to clean up your build product. By running make flash
you should be able to flash it on to your TM4C123G Launchpad and you will see RGBs.
To run your own project, you can use the template Makefile and your configuration to it. Please refer to my other projects to see how I write my makefile.
- Add project name In template Makefile Line 35 put your project name here.
- Add include paths In template Makefile Line 57, add where your h files are.
- Add the c files you are tyring to use In template Makefile Line 83, add c files used in your project in terms of object files.
- make (flash)
write up soon
Josh Minor's linux tools has been a super valuable referenece when I tried to tackle problems. You can find his tools here.