Flashing with default - how does the IDE get the .bin file and how is it delivered - could it have been cached? ...was I too quick #4375
Replies: 1 comment
-
Posted at 2015-01-29 by DrAzzy I experienced the "flashback" bug as well! I had a board running v72 bigram from the 23rd. Went into tools, flasher, flashed it, nothing advanced. And I was getting odd behavior.... And then I tried to convert something to a uint8array and that didn't work, and then I reconnected and realized I was on v71 again. But then I saw the little notice in the upper right corner saying there was an update, and went through flasher again, and it flashed. But at the time, I scratched my head, and wondered if I'd done something dumb (it's been known to happen), and ignored it once I got the right firmware flashed. The fact that you saw the exact same thing points to a larger issue. I'll bet it has something to do with the fact that we were already running a board with v72, and that made the IDE not think we needed to update... and hence not download the new firmware? Posted at 2015-01-29 by @gfwilliams Well, all I can think is it's browser caching. When you connect, the web IDE looks at Having said that, the file is served up with the relevant headers to say 'don't cache' - so if it is being kept it really shouldn't be. Posted at 2015-01-29 by @allObjects
Indeed, that could explain it... I though watched the the progress bar and the blinking... (I think so, it is always a dead moment where I just look and watch/observe in great anticipation to see it succeed and then to use it. Therefore, I think, the release number check could be different... on the other hand, the release number check for the notification should not have an impact on the flashing. I for sure cannot remember seeing the notice (may be it showed but it was on my - physical and mental - blind spot since I trust @gfwilliams announcement more that what my computer does... so I do with the header info in the response not to cache, which 'overwrites' (normally) the browser's settings...
Is that what I called (in message): '...having dud feelings towards myself'?
Like that term... because the bugs we are talking about here can - most of the time - be eliminated quite successfully. To bad with all the other kind of bugs it is not that easy... and the worst with the mental, PSTD related, flashbacks. Posted at 2015-01-29 by @allObjects @gfwilliams and @drazzy, what about using odd version numbers for not released versions, such as 1v73, and even numbers for released versions, such as 1v74 - for versions to come? Posted at 2015-01-29 by Frida I have read somewhere, that when a program is saved on Espruino and we flash a new version it will maybe not work, because there are many changes in the new version. Then reset(), save() and then flash. Posted at 2015-01-29 by @allObjects Important point there bout reset(), save()... In my case, I had nothing saved. I uploaded after flashing. Updated initial post to be precise. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-01-29 by @allObjects
The last 24 hours something really weird happened:
A bit history:
This really puzzled me because after flashing this morning after 1v72 announcement with default what I meant to be 1V72 was actually 1V71...
If I would have detected earlier, some back and forth about AT25/EEPROM would not have happen... on the other hand , cannot really understand why the new AT25 - as pulled with require("AT25") ; in the code uploaded to the board with 1v72 - made Espruino NOT to complain about the new E.toString() function used by AT25... and return (nicely and consistently 0xFF)[http://forum.espruino.com/comments/12067790/]... no matter what...
@drazzy, for your - and my - peace of mind, I could not recreate the error after flashing again... I mad at me not to react right properly and test before flashing with default again (sure, I can go back to 1v71 and test... and hopefully would notice the same failures... I know for sure that I got some firmware flashed than I had on the board, because new A25 was working nice (beside the power cycle caveat).
My only explanation is: the 1v71 was still hanging out there in the browser, network, or the http server cache, and I got 'the floor model' delivered... which brings me to the question about the method / exact code the IDE issues to get the .bin file.
@gfwilliams, is there some reasonable explanation from your point for that?
Beta Was this translation helpful? Give feedback.
All reactions