Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Trouble loading firmware
CCahill
Newbie
Posts: 4
Permalink
Post Trouble loading firmware
on: November 6, 2014, 16:44
Quote

n00b here having issues loading both the hex file and compiling within the ide. I have a uno r3 and v2 motorsheild.

When trying to load with Xloader I just get 0 bytes uploaded at the end. My settings are Uno, Com3, 115200

When compiling within the ide I keep getting an error of 'expected initializer before '*' token', which happens on the 'const byte* p = (const byte*)(const void*)&value;' line in EEPROMAnything.h

And the errors
polargraph_server_a1.ino:66:26: warning: AccelStepper.h: No such file or directory
configuration.ino:31:21: warning: AFMotor.h: No such file or directory
In file included from polargraph_server_a1.ino:69:
/EEPROMAnything.h: In function 'int EEPROM_writeAnything(int, const T&)':
EEPROMAnything.h:6: error: expected initializer before '*' token
EEPROMAnything.h:9: error: 'p' was not declared in this scope
/EEPROMAnything.h: In function 'int EEPROM_readAnything(int, T&)':
EEPROMAnything.h:15: error: 'byte' was not declared in this scope
EEPROMAnything.h:15: error: 'p' was not declared in this scope
EEPROMAnything.h:15: error: expected primary-expression before ')' token
EEPROMAnything.h:15: error: expected primary-expression before 'void'

Any direction I should be looking in?

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Trouble loading firmware
on: November 6, 2014, 19:59
Quote

Hello, welcome, first off, which hex file? There's more than one.

Compiling in Arduino IDE: Sounds like you may not have the AccelStepper or AFMotor libraries installed. Unless you want to, there's no point in getting it working from source if you don't need to - it should work using XLoader.

Can you upload other sketches ok using the Arduino IDE?

sn

CCahill
Newbie
Posts: 4
Permalink
Post Re: Trouble loading firmware
on: November 6, 2014, 20:55
Quote

Ahh, I was under the impression that I only needed to upload your code and not any other libraries. So load the code that in the adafruit v2 tutorial, then try to compile?

Yes, Ive been able to atleast load the blink example sketch.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Trouble loading firmware
on: November 6, 2014, 22:31
Quote

Only you know what hardware you have, and can say what libraries you need to have installed. If it is an Arduino UNO with an Adafruit Motorshield v2, then you'll need Accelstepper and the Adafruit Motorshield library.

There is a code bundle: https://github.com/euphy/polargraphcontroller/releases/latest, and I've just checked but it doesn't actually have the Adafruit library in it (oops!). You'll need to download it from off the interwebs.

sn

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.026 seconds.