Arduino Forum

Development => Other Software Development => Topic started by: rasheek on Jun 04, 2014, 07:36 am

Title: New Template for Kdevelop/CMake for Arduino 1.0
Post by: rasheek on Jun 04, 2014, 07:36 am
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.
Title: Re: New Template for Kdevelop/CMake for Arduino 1.0
Post by: rasheek on Jul 04, 2014, 02:58 am
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 . :)
Title: Re: New Template for Kdevelop/CMake for Arduino 1.0
Post by: jack5766 on Dec 03, 2014, 11:47 pm
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
Title: Re: New Template for Kdevelop/CMake for Arduino 1.0
Post by: burdickjp on Dec 07, 2014, 06:14 am
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
Title: Re: New Template for Kdevelop/CMake for Arduino 1.0
Post by: ndrg on Apr 22, 2015, 12:33 pm
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?
Title: Kdevelop/CMake for Arduino 1.6
Post by: Lebedinsky on Dec 08, 2015, 01:15 am
Hi all. I worked in the Arduino IDE, but had to move to KDevelop. Current progress:


In system need:


Not tested:


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
Title: Re: New Template for Kdevelop/CMake for Arduino 1.0
Post by: Lebedinsky on Dec 09, 2015, 09:51 am


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