arduino:configuring_netbeans_for_arduino_development
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
arduino:configuring_netbeans_for_arduino_development [2016/09/19 01:30] – created mithat | arduino:configuring_netbeans_for_arduino_development [2018/10/02 18:56] – [Configuring Netbeans for Arduino Development] 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. | + | My current favorite tool for developing non-trivial Arduino projects is Netbeans with C++ support. |
===== 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 either [[https:// | ||
- | ===== The Makefile | + | ==== Arduino-Makefile ==== |
- | When creating a new project, | + | When creating a new project |
- | <code make> | + | <file make Makefile> |
# Project config | # Project config | ||
ARDUINO_LIBS = SoftwareWire AsyncTimer | ARDUINO_LIBS = SoftwareWire AsyncTimer | ||
Line 31: | 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 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