[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4792: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4793: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
AutoQuad Forum • View topic - Cannot flash firmware (Using Parser: Intel HEX,Error device)
Page 1 of 1

Cannot flash firmware (Using Parser: Intel HEX,Error device)

PostPosted: Thu Dec 01, 2016 11:33 pm
by Grigoriy
Good evening everyone!

Recently viewtopic.php?f=33&t=4900
I found how to solve an issue with reading/writing parameters, but now I found that I cannot update firmware..

Now I use a serial <-> USB connector with 4 pins on a serial side. I'm not sure how it's called, but QGG recognizes it as "Prolific USB-to-Serial Comm Port" (see Figure in the end).

I connect the serial the same way I did for reading/writing parameters (I connect RX, TX and GND) from a picture here: http://autoquad.org/wiki/wiki/autoquad- ... nnections/
I tried to connect with a +5V pin. Plus I tried to use Silicone Labs (CP210x) serial connector.

Also on this issue I found other pages:
viewtopic.php?f=26&t=3780
viewtopic.php?f=26&t=1636&p=6468&hilit=unusual+way#p6468
viewtopic.php?f=26&t=15&hilit=unusual+way&start=80
but they didn't help me to solve the issue..

So, currently I have a board with a DIMU soldered (it was already bouth like this and I think it is a comparatively new version of a board). When I connect to QGG it says that the version is 7.1 Experimental (it's written: "AutoQuad FW: v. 7.1.-EXPR r449 b1852 HW: v. 6r1")

I try to follow instructions for flashing on this page: http://autoquad.org/wiki/wiki/autoquad- ... 2-hardware
I didn't forget to remove jumper from J3 and place it to J4. When the AQ6 starts, it has only red LED blinking.

After trying to flash the firmware I see an error like this:


Thank you for your time and have a good day!

Re: Cannot flash firmware (Using Parser: Intel HEX,Error dev

PostPosted: Fri Dec 02, 2016 1:46 am
by LPR
I found that if I first connect the board to telemetry and then try to update the firmware that sometimes I get the error that you're getting.

The solution is to first close the QGC and then unplug the USB connection to your computer.

Now start the QGC and connect the USB cable with the jumper in place to do firmware loading.

Hope that helps.

Re: Cannot flash firmware (Using Parser: Intel HEX,Error dev

PostPosted: Fri Dec 02, 2016 4:44 pm
by Grigoriy
Thank you for your comment!

I restarted PC, started AQ6 in a boot mode (with a jumper in J4, and it started with only red LED on), connected a serial port as on a picture (but on the picture Jumper is in position J3):


I still have the same error..
Maybe somebody else on this forum had such issue..

Re: Cannot flash firmware (Using Parser: Intel HEX,Error dev

PostPosted: Fri Dec 02, 2016 7:24 pm
by JussiH
Jumper is in the wrong position. Move it over to the left position.

Re: Cannot flash firmware (Using Parser: Intel HEX,Error dev

PostPosted: Sun Dec 04, 2016 7:56 pm
by Grigoriy
Thank you!
Today I had a chance to retake the picture to show how I made all connections! (previous picture had an older picture with comments).


I tried in these settings and had a resulting message from the first picture in this dialog..
Thanks for any suggestions!

Re: Cannot flash firmware (Using Parser: Intel HEX,Error dev

PostPosted: Mon Dec 05, 2016 8:35 pm
by JussiH
If you are sure that RX and TX is not swapped, then you probably need to check your drivers, or try a genuine FDTI cable.

I am not sure if UART2 (The JST-SH connector on the DIMU) supports bootloader, but you can try. You still need to short the boot jumper.

Pinout:
N4_uart.jpg
N4_uart.jpg (26.87 KiB) Viewed 20523 times


Last resort is to get a ST-LINK and flash via SWD.

Re: Cannot flash firmware (Using Parser: Intel HEX,Error dev

PostPosted: Fri Dec 09, 2016 4:07 pm
by Grigoriy
Thanks a lot for your detailed comments!

Initially, I used Flyduino USB UART-CP2012, but it didn't work well. When I found the same one Flyduino USB UART-CP2012, it started working perfectly.
It looks that I just had a broken Flyduino USB UART-CP2012, and my second type of USB <-> UART stick (with separate pins connectors) was too simple: maybe it didn't convert voltage or something like that.. With that second type of the sticker I could read/write parameters and change mixing table, but I could not flash the firmware.

So, now I can both: read/write parameters and flash the firmware using a new stick Flyduino USB UART-CP2012.

Thanks a lot to everyone!