Page 1 of 1

Can't upload sketch to arduino get errors

PostPosted: Thu Mar 26, 2015 4:07 pm
by stprovost
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

Re: Can't upload sketch to arduino get errors

PostPosted: Sat Mar 28, 2015 8:34 pm
by AE9RB
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.

Re: Can't upload sketch to arduino get errors

PostPosted: Sun Mar 29, 2015 8:51 pm
by stprovost
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

Re: Can't upload sketch to arduino get errors

PostPosted: Mon Mar 30, 2015 2:57 am
by stprovost
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!

Re: Can't upload sketch to arduino get errors

PostPosted: Mon Mar 30, 2015 3:17 am
by AE9RB
The power from USB is all you need. Maybe something wrong with your Uno.