Store › Forums › Hackvision › Bugs/Problems › Can’t upload to board
- This topic has 7 replies, 2 voices, and was last updated 13 years, 2 months ago by
Michael.
-
AuthorPosts
-
December 5, 2011 at 4:10 am #471
ChubbRck
MemberHi there,
Thanks for a really cool product – O0
I’m having trouble uploading sketches from the Arduino IDE and was hoping somebody might be able to offer some advice.
Although it seems to locate the TVOut Library, I get a message that ‘PAL was not declared’ in this scope. There seems to be a host of errors regarding functions it can’t find in the TVOut library. This is with the Breakout code example. Is this a sign that I am using the wrong TVOut library?
When trying to re-upload the hackvision firmware, I get the message that there was a problem uploading to the board (avrdude: stk500_recv(): programmer is not responding). The board is powered with a 9V battery and connected with a USB to TTL cable. Which Arduino version should i be using? I have tried both the new 1.0 and the last stable release with no luck.
Any guidance would be appreciated. Thanks so much –
Nick
December 5, 2011 at 4:17 am #1260ChubbRck
MemberUpdate:
I was able to re-upload the hackvision firmware. The problem was I did not have the right board selected, (‘Duemalinova or Nano’… etc.) – from this, I also deduce that we are supposed to be using Arduino 0022 as this option does not exist in Arduino 1.0.
I’m still having trouble with the breakout example and the TVOut library, so help is still appreciated. I’m wanting to write a game for Hackvision from scratch and am wondering the best template to start from.
Nick
December 5, 2011 at 2:54 pm #1262Michael
KeymasterGlad you were able to upload. You can use Arduino 1.0. They changed the wording on the boards menu, so now it’s called “Arduino Duemilanove w/ ATmega328”.
Arduino 1.0 requires some library changes for proper compilation, and I will be releasing new versions of the Controllers library this week (maybe tonight). It’s just a minor tweak to fix the #include directives.
Breakout is a good place to start. What problems are you having? Compilation problems? Just make sure you download the proper libraries and such based on what the games page describes. Let us know if you are still stuck. I’ll have Arduino 1.0 libraries out soon.
December 11, 2011 at 9:35 pm #1210ChubbRck
MemberHi Michael,
Thanks for your continued help, it’s really appreciated!
I was actually able to upload to the board eventually using some trial and error and your tips.
I was wondering if your new Arduino 1.0 libraries were out yet? I’d be happy to use Arduino 0022 except I’m pairing the Hackvision with a Heart Rate Monitor that requires 1.0.
Thanks again!
Nick
December 11, 2011 at 9:42 pm #1211Michael
KeymasterI still need to fix up the libraries and release them, but I’m currently overwhelmed with the xmas shopping season….
This thread: http://nootropicdesign.com/forum/viewtopic.php?f=29&t=2434
shows the simple code change to make so that Arduino code can run on 1.0. You just need to tweak the #includes in the Controllers library….
December 11, 2011 at 11:40 pm #1212ChubbRck
MemberThanks for the quick reply,
Just to clarify, do I paste that code inside Controllers.h? Or each of the .h files specifically? (e.g. nunchuck.h, etc..) or do I edit the .cpp files?
I tried pasting in each .h file but still get an error about requiring wiring.h – any thoughts would be helpful, thanks so much again –
Nick
December 11, 2011 at 11:49 pm #1213Michael
Keymasterwherever the compiler gives you an error on WProgram.h. Just keep correcting til it compiles.
December 12, 2011 at 12:03 am #1214ChubbRck
MemberGreat, thank you – I’m now compiling without errors.
If it would be helpful to anyone else to know, I also had to change a line in nunchuck.cpp to replace ‘wiring.h’
—
#if ARDUINO < 100
#include “wiring.h”
#else
#include “wiring_private.h”
#endif
—Nick
-
AuthorPosts
- You must be logged in to reply to this topic.