Go Down

Topic: New Template for Kdevelop/CMake for Arduino 1.0 (Read 2423 times) previous topic - next topic

rasheek

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!

The template is attached to this post.

rasheek

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 . :)

jack5766

Hello,

I have installed Kedevelop and copy the "arduinocmake.tar.bz2" file in "/usr/share/kde4/apps/kdevappwizard/templates/" directory.

After creating a new project, when I try to compile I get an error:

make: *** No rule to make target "all"

I need help.

Thank you very much

burdickjp

Hello,

I have installed Kedevelop and copy the "arduinocmake.tar.bz2" file in "/usr/share/kde4/apps/kdevappwizard/templates/" directory.

After creating a new project, when I try to compile I get an error:

make: *** No rule to make target "all"

I need help.

Thank you very much
Did you follow these directions?
http://playground.arduino.cc/Code/Kdevelop

ndrg

Hi
I have the same problem of Jack.
I followed the directions in http://playground.arduino.cc/Code/Kdevelop
but when I try the script "Compile and upload Arduino"  on the "Hello Word"-like template I get the same error from kdevelop:
Code: [Select]

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?

Lebedinsky

#5
Dec 08, 2015, 01:15 am Last Edit: Dec 08, 2015, 05:31 am by Lebedinsky
Hi all. I worked in the Arduino IDE, but had to move to KDevelop. Current progress:
  • I get the latest arduino IDE 1.6.6 and copy core and variants to dir with CMake templates.
  • Make CMake for arduino leonardo.
  • Make a template for KDevelop based on previous work.
  • Compilation binaries for leonardo done.


In system need:
  • Build toolchain for avr
  • Get & install KDevelop :D


Not tested:
  • hex firmware
  • flash to arduino


Attachment need repack to
Code: [Select]
arduino.tar.bz2
 and copy to
Code: [Select]
kdevappwizard/templates/

Help in preparing recipes and testing is welcome, as well as constructive criticism. And I'm sorry for my english :-D

Lebedinsky

#6
Dec 09, 2015, 09:51 am Last Edit: Dec 11, 2015, 05:01 am by Lebedinsky
  • Little changes for building bins
  • Testing upload hex to arduino leonardo - well done.


Yeah! After flashing ATmega and booting firmware controller working fine, but port for flashing is closed before reset. I can not understand why?  :smiley-roll:

UPD:
Yeap!

From: https://www.arduino.cc/en/Main/ArduinoBoardLeonardo

"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. "


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy