arduino:configuring_netbeans_for_arduino_development
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arduino:configuring_netbeans_for_arduino_development [2016/09/19 01:30] – created mithat | arduino:configuring_netbeans_for_arduino_development [2024/02/05 19:06] (current) – mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Configuring Netbeans for Arduino Development ====== | ====== Configuring Netbeans for Arduino Development ====== | ||
- | My current favorite tool for developing non-trivial Arduino projects is Netbeans with C++ support. I use [[https://github.com/sudar/ | + | My current favorite tool for developing non-trivial Arduino projects is [[https://netbeans.apache.org/|Netbeans]] with C++ support. Netbeans is a great candidate for Arduino programming because it allows you to define specific tool collections for projects |
===== The tool collection ===== | ===== The tool collection ===== | ||
+ | NetBeans will be happiest if you let it know where the build tools for your project live. Set up a new tool collection for Arduino along the lines of the figure below: | ||
+ | {{: | ||
- | I won't cover using Arduino-Makefile here as that's its own thing. Assuming you have Arduino-Makefile working, on the command line, the next thing you'll want to do is set up a new tool collection in Netbeans for Arduino along the lines of the figure below: | + | If you are using an Arduino that uses something other than an AVR microcontroller, the paths will need to be adjusted. |
- | {{: | + | ===== The Makefile and config ===== |
+ | I use my own [[https:// | ||
- | ===== The Makefile ===== | + | ==== Arduino-Build |
- | When creating a new project, use a Makefile | + | If you're using Arduino-Build, then your project' |
- | <code make> | + | <file make Makefile> |
+ | # Point BB at the arduino-build script | ||
+ | BB=/ | ||
+ | |||
+ | # You shouldn' | ||
+ | .PHONY : compile clean upload monitor upmon | ||
+ | |||
+ | build: | ||
+ | $(BB) build | ||
+ | |||
+ | clean: | ||
+ | $(BB) clean | ||
+ | |||
+ | upload: | ||
+ | $(BB) upload | ||
+ | |||
+ | monitor: | ||
+ | $(BB) monitor | ||
+ | |||
+ | upmon: upload monitor | ||
+ | </ | ||
+ | |||
+ | You will also need an '' | ||
+ | |||
+ | <file bash arduino.conf> | ||
+ | # === Arduino path === | ||
+ | ARDUINO_PATH=/ | ||
+ | |||
+ | # === Board parameters === | ||
+ | BOARD_PACKAGE=arduino | ||
+ | BOARD_ARCHITECTURE=avr | ||
+ | BOARD=nano | ||
+ | BOARD_PARAM=" | ||
+ | |||
+ | # === Communication settings === | ||
+ | PORT=/ | ||
+ | SPEED=9600 | ||
+ | </ | ||
+ | |||
+ | Consult the Arduino-Build readme for information on figuring out the board parameters and other fiddly bits. | ||
+ | |||
+ | ==== Arduino-Makefile ==== | ||
+ | |||
+ | When creating a new project with Arduino-Makefile, | ||
+ | |||
+ | <file make Makefile> | ||
# Project config | # Project config | ||
ARDUINO_LIBS = SoftwareWire AsyncTimer | ARDUINO_LIBS = SoftwareWire AsyncTimer | ||
Line 31: | Line 79: | ||
# Include parent Makefile from < | # Include parent Makefile from < | ||
include $(HOME)/ | include $(HOME)/ | ||
- | + | </file> | |
- | </code> | + | |
===== Code completion ===== | ===== Code completion ===== | ||
- | + | While your setup should be working now, NetBeans | |
- | While your setup should be working now, NB will be shouting at you a lot about things not being defined, etc. That's because you need to add [[arduino: | + | |
arduino/configuring_netbeans_for_arduino_development.1474248600.txt.gz · Last modified: 2016/09/19 01:30 by mithat