Firmware upgrade error.

Here is the place for all your dsPic or autopilot questions.

Moderator: lukasz

Firmware upgrade error.

Postby daedalus » Thu Aug 04, 2011 5:03 am

I am using the firmware version you posted here viewtopic.php?f=4&t=319#p1366
and when trying to upgrade/downgrade I get an error.
Take a look at the attached file.
upgrade_error.jpg
upgrade_error.jpg (30.79 KiB) Viewed 8232 times
daedalus
 
Posts: 38
Joined: Tue Apr 05, 2011 4:50 pm
Location: Romania

Re: Firmware upgrade error.

Postby Tom » Fri Aug 05, 2011 2:57 pm

Which firmware is currently installed on your device? If it's v0.5 or later you can firmware upgrade using gluonconfig.

Did you follow the correct procedure: http://gluonpilot.com/wiki/Upgrading_firmware

Did you try several times? (when connecting the ftdi connector, not all pins are inserted at _exactly_ the same time, which can cause these kinds of problems)
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Firmware upgrade error.

Postby daedalus » Tue Aug 09, 2011 10:42 am

On the gluonpilot I have now the firmware version you posted here viewtopic.php?f=4&t=319#p1366 with camera roll stabilization enabled.

That version uses 57600 baud in gluonconfig and that is the source of "hardware detected a framing error" - probably the gluonconfig is using the default 115200 baud.

I have tried using the following command line (with standard 0.52 firmware):
ds30LoaderConsole.exe -k=COM6 -f="rtos_pilot.hex" -p -d=dsPIC33FJ256MC710 -r=57600 -q=0a;5a;5a;3b;31;31;32;33;0a -u=57600 -b=1200 -o

And I get different errors like the following two:
Initiating write...
Sending reset command...ok
Searching for bl .
Unexpected data received, 243bytes, expected max 3, aborting
Firmware version timed out
Tx 10 bytes / Rx 1 byte / 1.5s

Initiating write...
Sending reset command...ok
Searching for bl .
Found PIC24HJ128GP510A fw ver. 12.7.5
Wrong pic detected(71)/selected(199), aborting
Tx 10 bytes / Rx 3 bytes / 1.5s

When using the ds30 Loader Gui and checking for bl I get similar results.
daedalus
 
Posts: 38
Joined: Tue Apr 05, 2011 4:50 pm
Location: Romania

Re: Firmware upgrade error.

Postby Tom » Tue Aug 09, 2011 11:00 am

Can you try with

ds30LoaderConsole.exe -k=COM6 -f="rtos_pilot.hex" -p -d=dsPIC33FJ256MC710 -r=115200 -q=0a;5a;5a;3b;31;31;32;33;0a -u=57600 -b=1200 -o



Bootloader = 115200 baud
Latest gluonconfig ( > 0.5.2) = 57600 baud
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Firmware upgrade error.

Postby daedalus » Tue Aug 09, 2011 11:43 am

Thank you Tom, it worked :D
You are the master!

Maybe then the gluonconfig interface is not formatting correctly the ds30loader command for the new firmware versions with 57600 baud.
daedalus
 
Posts: 38
Joined: Tue Apr 05, 2011 4:50 pm
Location: Romania

Re: Firmware upgrade error.

Postby Tom » Wed Aug 10, 2011 9:40 am

I suppose I changed it in my development code but never updated the zip file on google code...
Will release a new version soon :-)
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium


Return to Firmware

Who is online

Users browsing this forum: No registered users and 4 guests

cron