Can't upload sketch to arduino get errors

General discussion and support for Iambino and the Iambic Keyer Shield.

Can't upload sketch to arduino get errors

Postby stprovost » Thu Mar 26, 2015 4:07 pm

Hello, I am having trouble uploading sketch to arduino uno.

my computer is a mac running os x 10.9.5
arduino running on mac is 1.6.1

I was able to run the led blink sketch with no issues.
I downloaded the iambino sketch from github with the zip option.
I relabeled folder to iambino per your instructions.

I had the arduino app open the iambino.ino file through the file open process on both the mac and windows laptop.

I did the upload process and got errors:
Here is the error list from the mac arduino app:

Arduino: 1.6.1 (Mac OS X), Board: "Arduino Uno"

iambino.ino:63:40: error: 'prog_char' has not been declared
lcd.ino:19:1: error: 'prog_char' does not name a type
lcd.ino:29:1: error: 'prog_char' does not name a type
lcd.ino:39:1: error: 'prog_char' does not name a type
lcd.ino:49:40: error: 'prog_char' has not been declared
lcd.ino: In function 'void lcd_setup()':
lcd.ino:66:22: error: 'lcd_box' was not declared in this scope
lcd.ino:67:22: error: 'lcd_left_arrow' was not declared in this scope
lcd.ino:68:22: error: 'lcd_right_arrow' was not declared in this scope
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

I turned on the verbose options in preferences, here is the error results:

Arduino: 1.6.1 (Mac OS X), Board: "Arduino Uno"

Build options changed, rebuilding all
Using library EEPROM in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/EEPROM
Using library LiquidCrystal in folder: /Users/sprovost/Documents/Arduino/libraries/LiquidCrystal
Using library iambino in folder: /Users/sprovost/Documents/Arduino/libraries/iambino (legacy)

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10601 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/sprovost/Documents/Arduino/libraries/LiquidCrystal/src -I/Users/sprovost/Documents/Arduino/libraries/iambino /var/folders/xj/b10ynhls6sx776z8w9wqk06m0000gn/T/build4072051559712115973.tmp/iambino.cpp -o /var/folders/xj/b10ynhls6sx776z8w9wqk06m0000gn/T/build4072051559712115973.tmp/iambino.cpp.o
iambino.ino:63:40: error: 'prog_char' has not been declared
lcd.ino:19:1: error: 'prog_char' does not name a type
lcd.ino:29:1: error: 'prog_char' does not name a type
lcd.ino:39:1: error: 'prog_char' does not name a type
lcd.ino:49:40: error: 'prog_char' has not been declared
lcd.ino: In function 'void lcd_setup()':
lcd.ino:66:22: error: 'lcd_box' was not declared in this scope
lcd.ino:67:22: error: 'lcd_left_arrow' was not declared in this scope
lcd.ino:68:22: error: 'lcd_right_arrow' was not declared in this scope
Error compiling.

I also got similar results when I loaded the arduino app on the windows 7 laptop running 32 bit os with arduino 1.6.1 installed.

help?
do I use an older version of arduino?

really looking forward to using the iambino!

stephen
stprovost
 
Posts: 3
Joined: Thu Mar 26, 2015 4:01 am

Re: Can't upload sketch to arduino get errors

Postby AE9RB » Sat Mar 28, 2015 8:34 pm

When I googled that error a zillion results came up all saying the same thing.
Add this to the sketch...
#define prog_char const char PROGMEM
Or just use an older version.
73 David AE9RB
AE9RB
Site Admin
 
Posts: 511
Joined: Thu Nov 15, 2012 5:27 am
Location: Portland, Oregon, USA (CN85ql)

Re: Can't upload sketch to arduino get errors

Postby stprovost » Sun Mar 29, 2015 8:51 pm

David: thank you for that line of code! :D
I was able to finish compiling the sketch and upload compiled sketch to the arduino.
thanks!
stephen
stprovost
 
Posts: 3
Joined: Thu Mar 26, 2015 4:01 am

Re: Can't upload sketch to arduino get errors

Postby stprovost » Mon Mar 30, 2015 2:57 am

Success!
I was able to upload the sketch to the uno for the shield.
Upon running the uno, the lcd display did not show any characters.
I turned R12 up and down with no success getting characters to appear.
Upon research, I found out that the 16x2 display requires the 5v supply to be at 5volts.
I did some checking with my volt meter and discovered that running on the usb cable or connecting a 5 volt dc supply to the power connector, the 5v pin would have 3.5 volts.
I connected a 9v dc to the power connector and the display is working properly!
stprovost
 
Posts: 3
Joined: Thu Mar 26, 2015 4:01 am

Re: Can't upload sketch to arduino get errors

Postby AE9RB » Mon Mar 30, 2015 3:17 am

The power from USB is all you need. Maybe something wrong with your Uno.
73 David AE9RB
AE9RB
Site Admin
 
Posts: 511
Joined: Thu Nov 15, 2012 5:27 am
Location: Portland, Oregon, USA (CN85ql)


Return to Iambino

Who is online

Users browsing this forum: No registered users and 1 guest