Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Makefile for Microcontrollers

License

NotificationsYou must be signed in to change notification settings

jscrane/uC-Makefile

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!

Configuration

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.

Supported Cores

Note: Energia is no longer developed. Its cores are now integrated with Arduino viathis repository.

Credits

  • elpaso'sMakefile for msp430 provided inspiration.
  • attiny support is largely due to SpenceKonde'sATTinyCore

[8]ページ先頭

©2009-2025 Movatter.jp