Page 1 of 1

Firmware upgrade error.

PostPosted: Thu Aug 04, 2011 5:03 am
by daedalus
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 8294 times

Re: Firmware upgrade error.

PostPosted: Fri Aug 05, 2011 2:57 pm
by Tom
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)

Re: Firmware upgrade error.

PostPosted: Tue Aug 09, 2011 10:42 am
by daedalus
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.

Re: Firmware upgrade error.

PostPosted: Tue Aug 09, 2011 11:00 am
by Tom
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

Re: Firmware upgrade error.

PostPosted: Tue Aug 09, 2011 11:43 am
by daedalus
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.

Re: Firmware upgrade error.

PostPosted: Wed Aug 10, 2011 9:40 am
by Tom
I suppose I changed it in my development code but never updated the zip file on google code...
Will release a new version soon :-)