arduino:configuring_netbeans_for_arduino_development
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
arduino:configuring_netbeans_for_arduino_development [2016/09/19 01:37] – [The tool collection] mithat | arduino:configuring_netbeans_for_arduino_development [2018/08/24 16:20] – [Arduino-Build] 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. This documents my setup. | + | My current favorite tool for developing non-trivial Arduino projects is Netbeans with C++ support. This documents my setup. It has been vetted with NetBeans 8.2. |
===== 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 use [[https:// | + | |
{{: | {{: | ||
+ | If you are using an Arduino that uses something other than an AVR microcontroller, | ||
- | ===== The Makefile ===== | + | ===== The Makefile |
- | When creating a new project, | + | I use either [[https:// |
- | <code make> | + | ==== 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 30: | Line 34: | ||
# Include parent Makefile from < | # Include parent Makefile from < | ||
include $(HOME)/ | include $(HOME)/ | ||
+ | </ | ||
- | </ | + | ==== Arduino-Build ==== |
- | ===== Code completion ===== | + | If you're using Arduino-Build, |
+ | <file make Makefile> | ||
+ | # Point BB at the arduino-build.sh 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 | ||
+ | </ | ||
+ | |||
+ | See the Arduino-Build readme for information on figuring out the board parameters and other fiddly bits. | ||
+ | |||
+ | ===== Code completion ===== | ||
- | 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: | + | While your setup should be working now, NetBeans |
arduino/configuring_netbeans_for_arduino_development.txt · Last modified: 2024/02/05 19:06 by mithat