Closed jorihardman closed 10 years ago
Some additional info:
I am on MacOSX 10.7.5 I have avrdude and libusb I am able to successfully upload the compiled hex file using avrdude on its own
And of course I immediately solve my own problem 10 minutes after posting :)
An additional argument is needed: PORT
generate_arduino_firmware(hub
SKETCH src/sketch.ino
PROGRAMMER avrispmkii
BOARD pro328
PORT usb
)
You may want to update the Programmers section of the docs for this as it took a cmake noob like me a long time to figure out what I was missing.
Actually, the PORT option is needed but its value is ignored, at least with the AVR ISP mkII programmer.
For this programmer, PORT dummy
also works.
I'm new to arduino-cmake and cmake in general, so I'm sure I'm missing something simple. I am unable to create a burn target for build. Here is my CMakeLists.txt:
The sketch compiles into a hex just fine, but there is no hub-burn target in the generated Makefile. As far as I can tell from the documentation, setting the PROGRAMMER option should automatically enable that target. Am I missing something?