MegaPirateNG / FlashTool

Firmware flashing tool
GNU General Public License v2.0
15 stars 14 forks source link

Server side error #14

Closed SirAlex closed 10 years ago

SirAlex commented 10 years ago

Looks like server side has some bug. After restarting scripts, it works well some time. But than, users wait for firmware forever, and in log you can see bad HEX file names, concatenated from N file names.

Last log messages:

{"level":"info","message":"Client requests hex FlashTool 1.0","timestamp":"2013-12-10T19:10:24.892Z"}
{"level":"info","message":"Need to build hex file for config: {\"board\":{\"name\":\"RCTimer CRIUS V2\",\"id\":\"crius2\",\"src-flags\":\"MPNG_BOARD_TYPE=RCTIMER_CRIUS_V2\"},\"rcinput\":{\"name\":\"PPM on A8\",\"id\":\"ppma8\",\"src-flags\":\"SERIAL_PPM=SERIAL_PPM_ENABLED\"},\"rcmapping\":{\"name\":\"Graupner / Spektrum\",\"id\":\"graupner_spektrum\",\"src-flags\":\"RC_MAPPING=RC_MAP_GRAUPNER\"},\"platform\":{\"name\":\"APM:Copter - X8\",\"version\":\"copter\",\"image\":\"copter-x8.png\",\"id\":\"copter-x8\",\"src-flags\":\"FRAME_CONFIG=OCTA_QUAD_FRAME\"},\"version\":{\"platform\":\"copter\",\"number\":\"3.0.1-R3 Beta\",\"id\":\"3.0.1-rc3\",\"src-path\":\"/home/builder/mpng\",\"src-repository\":\"https://github.com/MegaPirateNG/ardupilot-mpng.git\",\"src-version\":\"mpng-3.0.1-r3\",\"src-dir\":\"ArduCopter\"},\"gpstype\":{\"name\":\"Auto detect\",\"id\":\"default\",\"src-flags\":\"GPS_PROTOCOL=GPS_PROTOCOL_AUTO\"},\"gpsbaud\":{\"name\":\"38400\",\"id\":\"38400\",\"src-flags\":\"SERIAL2_BAUD=38400\"}}","timestamp":"2013-12-10T19:10:26.152Z"}
{"msg":"git fetch https://github.com/MegaPirateNG/ardupilot-mpng.git","level":"info","message":"","timestamp":"2013-12-10T19:10:26.152Z"}
{"msg":"Build: /home/builder/mpng/ArduCopter","level":"info","message":"","timestamp":"2013-12-10T19:10:27.144Z"}
{"msg":"Copy HEX","level":"info","message":"","timestamp":"2013-12-10T19:10:27.295Z"}
{"msg":"Copy HEX from:/home/builder/mpng/_build/ArduCopter.hex  TO:/home/builder/server-side/public/hex/8657e27377179b8e2d2ba5f8a477c930_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex7f2d67c75bf2f0e9aa5e77721abc1dac_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex7f2d67c75bf2f0e9aa5e77721abc1dac_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex7f2d67c75bf2f0e9aa5e77721abc1dac_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex0c986cc26bba6c86f3f3339d56840091_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hexaeca19a51dc31a95710835d8eeecca30_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex0047d5bbef9bc13acff1d3dbb80d17d6_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex65a5d4818710c41cd66c21c3081a19ec_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex","level":"info","message":"","timestamp":"2013-12-10T19:10:27.295Z"}
{"msg":"Compress HEX: /home/builder/server-side/public/hex/8657e27377179b8e2d2ba5f8a477c930_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex7f2d67c75bf2f0e9aa5e77721abc1dac_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex7f2d67c75bf2f0e9aa5e77721abc1dac_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex7f2d67c75bf2f0e9aa5e77721abc1dac_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex0c986cc26bba6c86f3f3339d56840091_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hexaeca19a51dc31a95710835d8eeecca30_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex0047d5bbef9bc13acff1d3dbb80d17d6_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex65a5d4818710c41cd66c21c3081a19ec_0e01c7bd3c38eacff6bd366fa6ecd0aac847448c.hex","level":"info","message":"","timestamp":"2013-12-10T19:10:27.297Z"} 
SirAlex commented 10 years ago

Ok, looks like I'm found where the bug. Fixed. Waiting for user response...

smurfy commented 10 years ago

Ok, please push the fix.

habdelouafi commented 9 years ago

hello sir alex, i can t flash the 3.1.5 r2 using the flashtool1_1. it stuck on waiting for firmware. any hint on this? thanks.

SirAlex commented 9 years ago

@habdelouafi Thank you for the info! Bug fixed, try again!

habdelouafi commented 9 years ago

hello, the flashtool download the firmware now but stuck at writing. avrdude crashed somehow. i tried flashing firmware 3.0.1 and it works perfectly. when i try to flsh it using arduino i get this message avrdude: verification error, first mismatch at byte 0x3e000 0xff != 0x0d avrdude: verification error; content mismatch

using crius aiop 1.1 thanks

smurfy commented 9 years ago

what does the error.txt say?

habdelouafi commented 9 years ago

error.txt

C:/flashtool/external/avrdude.exe -CC:/flashtool/external/avrdude.conf -patmega2560 -cwiring -PCOM12 -b115200 -D -Uflash:w:C:/flashtool/firmwares/cacb23c12497abdca782d0c78601ad48_c469f7b9b3d9bc22a4fd57f50526d24d505e2124.hex:i avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.05s

avrdude.exe: Device signature = 0x1e9801 avrdude.exe: reading input file "C:/flashtool/firmwares/cacb23c12497abdca782d0c78601ad48_c469f7b9b3d9bc22a4fd57f50526d24d505e2124.hex" avrdude.exe: writing flash (217026 bytes):

Writing | avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_getsync(): timeout communicating with programmer avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_getsync(): timeout communicating with programmer avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_getsync(): timeout communicating with programmer avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_getsync(): timeout communicating with programmer avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_getsync(): timeout communicating with programmer avrdude.exe: stk500v2_ReceiveMessage(): timeout avrdude.exe: stk500v2_ReceiveMessage(): timeout

this happens when i try to flash 3.1.5. i can flash 3.0.1 using flashtool without problem.