Okay guys,
I just spent a few minutes fixing the old CMAKE templates so they'll work with Arduino 1.0+.
At the moment they only have a cmake file for Arduino MegaPro 2560, and Arduino UNO. All that is needed is to add your respective board in it's own cmake file.
The type of board can be found at:
/usr/share/arduino/hardware/arduino/variants
And the MCU type, well, that i will leave you to figure out. What's the fun in having all the answer?
Just add the bz2 template into:
/usr/local/share/apps/kdevappwizard/templates/
to use it with KDevelop.
Happy hacking!
Update:
Here's a much more updated, and functional version supporting more arduino board types and offering a correct cmake file that will now reflect your app name on the script libarduino.cmake
This one i use personally for my projects already, "Make flash" kicks ass .
Hi
I have the same problem of Jack.
I followed the directions in Arduino Playground - Kdevelop
but when I try the script "Compile and upload Arduino" on the "Hello Word"-like template I get the same error from kdevelop:
Running external script: /usr/bin/make TARGET=main all upload
make: ***Â No rule to make target "all". Stop.
*** Exited with return code: 2 ***
[\code]
What Have I to do?
"Rather than requiring a physical press of the reset button before an upload, the Leonardo is designed in a way that allows it to be reset by software running on a connected computer. The reset is triggered when the Leonardo's virtual (CDC) serial / COM port is opened at 1200 baud and then closed. When this happens, the processor will reset, breaking the USB connection to the computer (meaning that the virtual serial / COM port will disappear). After the processor resets, the bootloader starts, remaining active for about 8 seconds. The bootloader can also be initiated by pressing the reset button on the Leonardo. Note that when the board first powers up, it will jump straight to the user sketch, if present, rather than initiating the bootloader. "