11 years, 3 months ago.

problem with compiler hex file download

hi there, I am using the online compiler and have a problem that appears to come and go where the downloaded hex file sometimes is corrupted. It usually downloads at about 320KB but occasionally it downloads at 32KB and that file does not appear to be a hex file, but rather a binary of some sort. 10X compression going on? Has anyone encountered this before? thanks! -Tyler

what I expect: ":020000040000FA :10000000C0070000D1060000D1000000B1060000CA :1000100000000000000000000000000000000000E0 :100020000000000000000000000000005107000078 :100030000000000000000000DB000000E500000000 :10004000EF000000F9000000030100000D010000B6 :1000500017010000210100002B0100003501000004 :100060003F01000049010000530100005D01000054 :1000700067010000710100007B01000085010000A4 .... "

what I am getting: "@ ‰b›bbŸb¡b£b¥b¥b©‘¥b¥bMŽ¥b¥b9‘¥b¥b¥b¥b¥b¥b¥bm¥b¥bA¥bI¥b¥b¥bðøðºø  0È8$-¢Fg«FTF]F¬BÑð¬øF>̶F&3BÐû¢F«F3CGtz”z#$%&:ÓxÁûØRÓ0ÁÕ `pGµn)Ñð¢ÿ½p)Ñðaù½f)Ñðiù½e)Ñðdù½g)Ñð_ù½a)ÑÀFÀF½h Ӏ#Ci)ÑðÎø½d)ÑðÉø½u)ÑðÄø½o)Ñðoø½x)Ñðù½é)Ñð ø½ä)Ñðø½õ)Ñðø½ï)Ñðbø½ø)Ñðù½hÛ Ӏ#Cc)Ñð°þ½s)Ñð³þ½ã)Ñð½þ½ó)ÑðÀþ½ ½µÀFÀF˜™ðüð¶ù !ð‹ø@`` !ðoøà`ð’øðÌý½ ðfüðþFÿ÷ÞÿðôýðˆúpµF FFàÌÅ>.úÒ.ÓÌÅ>.ÓÌÅ6à!x)pdmvùÒp½Hh! C`H€GHGþçþçþçþçþçþç$@Á`µ FFFð ÿ½´Iµª˜ðÿ¼¼°G , ´µKª{DiF˜ð×þF iFðåþ F¼¼°GÝ ÷µ%u)h™¦Ððþ(Ú@B¦à™ hŠÕ¦àIÕ¦%àð þŸ$$7àð3û019Ud(øÑ+F2F!F˜ð-þþ½-+ øµFˆ Õ"L|Dà L|D4F!$5à 6¦]nTI2C FCóÑ"Fx#$Õp/Ð)Ð2#ðûýø½2#ùçpµF F!Fhð¾ý#F)F Fÿ÷Çÿp½ÒÓÛ ËÀç0´h $h#C`#Ãa0¼#µçÞtóµF ° b FáhˆG(rÐ%(Ðbh¡h«àYO&D FáhˆG (FÛ1-Òx 8x(ÐCðç°Õ †C àaF a*- Ð(Fðý('Ð0=¸…aà˜ºȑa FáhˆG/FÑài(Ú †Cà˜ !€iHC™@08ˆa FáhˆGFðØü(ïÑ/ "

eh?

What OS and browser are you using?

posted by Sam Grove 12 Sep 2014

I am using OSX, and have tried both Safari and Chrome, same result

posted by Tyler Arnold 12 Sep 2014

I'll try to reproduce. Can you try to enable betamode and let me know if the same thing happens? http://mbed.org/betamode

posted by Sam Grove 12 Sep 2014

sure I can try that. Also, things magically started working consistently again. I am not sure if anything changed.

posted by Tyler Arnold 12 Sep 2014

Keep me posted. I'll still look at thing over the next few days.

posted by Sam Grove 12 Sep 2014

I was experiencing the same thing last night. Some builds would work and then a string of builds would fail. Eventually I managed to get a few occasions that the build failed and then without any code changes other than adding/removing a blank line I would get a successful build, each time I replicated this I did a file compare and the only difference was the following 4 bytes

0000001C: 24 00

0000001D: D3 00

0000001E: FF 00

0000001F: EF 00

The 0 bytes are from the failing binary. I had the same result with IE and Chrome.

posted by Chris Taylor 13 Sep 2014

Looks like the post processing hook to add a NVIC checksum either fails doesn't run. Thanks for the details. Gonna track this down.

posted by Sam Grove 13 Sep 2014

I saw similar behavior, it would be fine for a while, I make an innocuous change, the new hex would be bad, I went back and touched some files and got it to build a good hex again.

posted by Tyler Arnold 13 Sep 2014

Just wanted to +1 this issue, I'm experiencing the same problem often.

posted by Prashant Vaibhav 15 Sep 2014
Be the first to answer this question.