- Notifications
You must be signed in to change notification settings - Fork2
Makefile for Microcontrollers
License
NotificationsYou must be signed in to change notification settings
jscrane/uC-Makefile
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Makefile for popular Microcontrollers supporting Energia (msp430 andtivac boards) and Arduino-1.8.x (avr, attiny, esp8266 and esp32 boards).
If:
- You'd prefer to be using vi or emacs to the Arduino IDE
- Your preferred source tree layout differs from Arduino's
- You want to program more than one type of board at the same time
- You want more control over the build process than it gives you (e.g., compiler optimisation levels)
- ... then this is for you!
Install the makefile fragments insomedir.
Create a Makefile in your sketch directory, such as this, for aTI Launchpad:
BOARD := MSP-EXP430FR5739LPinclude msp430.mk
For anArduino Uno, the equivalent would be:
BOARD := unoinclude avr.mk
A minimal Makefile must specify a BOARD and include only one core. See thedocumentation for core-specific options.
Invoke with:
make -I somedir
Note: installing the fragments in a directory on Gnu Make'sincludepathmeans you can simply do:
make
See thedocumentation.
- avr, 1.8.6
- attiny, 1.5.2
- Arduinoesp8266, 3.1.2
- Arduinoesp32, 2.0.17
- Energiativac, 1.0.4 (requires editing SD.h for Stellarpad)
- Energiamsp430, 1.0.7
- stm32, 2.5.0
- rp2040, 4.1.1 (new!)
Note: Energia is no longer developed. Its cores are now integrated with Arduino viathis repository.
- elpaso'sMakefile for msp430 provided inspiration.
- attiny support is largely due to SpenceKonde'sATTinyCore
About
Makefile for Microcontrollers
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published