updating firmware

updating firmware

Postby avidan » Fri Mar 23, 2012 8:35 pm

hey,
when i open the osPID_Firmware.ino within Arduino1.0 it tells me that it needs to be in its own folder. So I click OK. It creates that folder, so I promptly move all the other files into the same folder (I get the following error even before moving the files).
Then I get "AnalogButton does not name a type"
for this line
AnalogButton button(A3, 0, 253, 454, 657);

I assume that the AnalogButton stuff is an issue with my libraries....fyi, i still have Arduinio .223 installed, since i have sketches that only work there.

thoughts?

otherwise, awesome kit! can't wait to integrate it in to some crazy projects...
avidan
 
Posts: 3
Joined: Fri Mar 23, 2012 8:31 pm

Re: updating firmware

Postby avidan » Sat Mar 24, 2012 12:37 am

looks like this library is a dependency?
http://arduino.cc/playground/Code/AnalogButtons

installed it, and now all is good.
avidan
 
Posts: 3
Joined: Fri Mar 23, 2012 8:31 pm

Re: updating firmware

Postby rocketscream » Sat Mar 24, 2012 1:53 am

avidan wrote:looks like this library is a dependency?
http://arduino.cc/playground/Code/AnalogButtons

installed it, and now all is good.


Nope, it is not that library.
It is bundled inside the osPID firmware with a local header file: AnalogButton_local.h.

I'm not sure how different is that code in the link. Let me check.
User avatar
rocketscream
 
Posts: 47
Joined: Sat Mar 10, 2012 2:05 am
Location: Malaysia

Re: updating firmware

Postby avidan » Mon Mar 26, 2012 7:37 pm

would i need to move that AnalogButton_local file into my library folder, or should it be sufficient that its in the same folder as the pde? when the IDE creates the new folder, should i move all contents into the new folder?
avidan
 
Posts: 3
Joined: Fri Mar 23, 2012 8:31 pm

Re: updating firmware

Postby rocketscream » Tue Mar 27, 2012 12:11 am

avidan wrote:would i need to move that AnalogButton_local file into my library folder, or should it be sufficient that its in the same folder as the pde? when the IDE creates the new folder, should i move all contents into the new folder?


No, you don't have to.

We wanted avoid people from getting confused with other library that might installed earlier. So, we bundled them together with the main firmware in the same folder.
User avatar
rocketscream
 
Posts: 47
Joined: Sat Mar 10, 2012 2:05 am
Location: Malaysia

Re: updating firmware

Postby aharthcock » Fri Apr 06, 2012 2:27 pm

On selecting Upload, the compile appears successful, then I get an error message:
"avrdude: stk500_getsync(): not in sync: resp=0x00"

The Quick Start has the instruction:

If everything goes correctly the firmware will upload and the IDE will display “Done Uploading.” If there is a failure it is likely because the reset button was not pressed in time. In this case repeat steps 5 and 6.

Where are we instructed to press a reset button, and where is it? There is no pictorial of the front panel. I assume it's the small button marked "SYS", but this does not appear to make a difference.
aharthcock
 
Posts: 2
Joined: Sun Mar 25, 2012 12:05 pm

Re: updating firmware

Postby aharthcock » Fri Apr 06, 2012 2:59 pm

OK, much embarrassed - had the wrong serial port.
Then with experimentation, held the SYS (reset) button during the compile & released before the upgrade - success. Directions to that effect in the Quick Start would be good.

Thanks, Andy
aharthcock
 
Posts: 2
Joined: Sun Mar 25, 2012 12:05 pm

Re: updating firmware

Postby dchris01 » Thu Apr 19, 2012 4:32 pm

avidan wrote:hey,
when i open the osPID_Firmware.ino within Arduino1.0 it tells me that it needs to be in its own folder. So I click OK. It creates that folder, so I promptly move all the other files into the same folder (I get the following error even before moving the files).
Then I get "AnalogButton does not name a type"
for this line
AnalogButton button(A3, 0, 253, 454, 657);

I assume that the AnalogButton stuff is an issue with my libraries....fyi, i still have Arduinio .223 installed, since i have sketches that only work there.

thoughts?

otherwise, awesome kit! can't wait to integrate it in to some crazy projects...
Have the same problem and can't get osPID firmware updated keeps hanging on analog button here is a picture of the error http://img138.imageshack.us/i/imageswv.jpg/
dchris01
 
Posts: 17
Joined: Sun Mar 11, 2012 10:18 pm
Location: Ireland

Re: updating firmware

Postby Brett » Fri Apr 20, 2012 11:38 am

Hi guys, I believe I have fixed this issue. from the commit note:

the problem:
- github adds a hash to the end of the download zip (e.g. "-da74de9")
- when unzipped this hash is now part of the folder name, so it doesn't match the .ino name
- a new folder is created without the hash, and for some reason the analogbutton files are not copied
- the newly moved .ino throws an error.

the solution:
- I created a osPID_firmware sub-folder and moved the program there. this way, when un-zipped the hash will be added to the outer folder, not the actual program folder
User avatar
Brett
Site Admin
 
Posts: 101
Joined: Fri Mar 09, 2012 10:05 pm
Location: Boston

Re: updating firmware

Postby dchris01 » Fri Apr 20, 2012 9:53 pm

Brett wrote:Hi guys, I believe I have fixed this issue. from the commit note:

the problem:
- github adds a hash to the end of the download zip (e.g. "-da74de9")
- when unzipped this hash is now part of the folder name, so it doesn't match the .ino name
- a new folder is created without the hash, and for some reason the analogbutton files are not copied
- the newly moved .ino throws an error.

the solution:
- I created a osPID_firmware sub-folder and moved the program there. this way, when un-zipped the hash will be added to the outer folder, not the actual program folder

Yes this does fix the AnalogButton Error
dchris01
 
Posts: 17
Joined: Sun Mar 11, 2012 10:18 pm
Location: Ireland


Return to Firmware

Who is online

Users browsing this forum: No registered users and 0 guests

cron