Can’t upload to board

Store Forums Hackvision Bugs/Problems Can’t upload to board

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #471
    ChubbRck
    Member

    Hi 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

    #1260
    ChubbRck
    Member

    Update:

    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

    #1262
    Michael
    Keymaster

    Glad 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.

    #1210
    ChubbRck
    Member

    Hi 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

    #1211
    Michael
    Keymaster

    I 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….

    #1212
    ChubbRck
    Member

    Thanks 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

    #1213
    Michael
    Keymaster

    wherever the compiler gives you an error on WProgram.h. Just keep correcting til it compiles.

    #1214
    ChubbRck
    Member

    Great, 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.