Flashing of Servotor32 fails (Ubuntu 12.04)

Hi,

I’m using Gnoduino to compile and flashing Arduino sketches.
With the following changes I was able to compile the code

diff --git a/Code/Servotor32_Default/Servotor32.cpp b/Code/Servotor32_Default/Servotor32.cpp
index caae3d6..f6b08ba 100644
--- a/Code/Servotor32_Default/Servotor32.cpp
+++ b/Code/Servotor32_Default/Servotor32.cpp
@@ -4,7 +4,7 @@
 #include <string.h>
 #include "Arduino.h"
 
-#include "SERVOTOR32_SPI.h"
+#include "Servotor32_SPI.h"
 #include "Servotor32_TimerOne.h"
 
 Servotor32::Servotor32()
diff --git a/Code/Servotor32_Default/Servotor32_Default.ino b/Code/Servotor32_Default/Servotor32_Default.i
index d768833..290f3c8 100644
--- a/Code/Servotor32_Default/Servotor32_Default.ino
+++ b/Code/Servotor32_Default/Servotor32_Default.ino
@@ -1,4 +1,5 @@
 #include "Servotor32.h" // call the servotor32 Library
+#include "HID.cpp"
 Servotor32 hexy; // create a servotor32 object
 
 void setup() {

Unfortunately, I cannot flash the binary to the board.
The error log signals:

/usr/bin/avr-objcopy -O ihex -R .eeprom /tmp/build1358877235.58tBIcok/Tempobj5sEkl3.elf /tmp/build1358877235.58tBIcok/Tempobj5sEkl3.hex

compile done.
avrdude -v -v -v -F -D -P/dev/ttyACM1 -carduino -b1200 -patmega32u4 -Uflash:w:/tmp/build1358877235.58tBIcok/Tempobj5sEkl3.hex:i

avrdude: Version 5.11.1, compiled on Oct 30 2011 at 10:41:10
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch
         
         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/yggdrasil/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping
         
         Using Port                    : /dev/ttyACM1
         Using Programmer              : arduino
         Overriding Baud Rate          : 1200
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

avrdude done.  Thank you.

What went wrong?

Regards,
Yggdrasil

Have you tried uploading with the regular arduino IDE? We can’t really support whatever compiler/IDE people decide to choose to use.

Hi,

I did not try Arduino, but this question is not related to the IDE.
Arduino use also the cli tool ‘avrdude’ to transfer the binary, didn’t it?

I will try Arduino IDE later, but assume to fail on the same step.

I succeeded flashing the Servotor32 from Xubuntu 12.04 (Ubuntu 12.04 with xfce desktop environment). I found the same CAPITALISATION problem with the #include line as mentioned before (worth the update on github?). I used the standard Arduino IDE, critically launching the IDE with the (most magical of all) commands: sudo. With that done I was able to see the Servotor32 board through the IDE and flash away happily.

Hi rpcook,

you’re right. Flashing works with the Arduino IDE. :slight_smile:
There is only one bug in this software (version 1.0.1): Do not use the ‘recent documents page’ of the gnome 3 file dialog to select the sketch. This will throw an exception.

It looks like Gnoduino isn’t using the correct way to upload to a leonardo board.

arduino.cc/en/Guide/ArduinoLeonardo#toc12

When the board is reset the serial port goes away and comes back a few seconds later. Once it’s back then it can be programmed with avrdude. The Arduino IDE handles this reset/wait for serial port delay for you.