Flash module missing? #2330
Replies: 5 comments
-
Posted at 2017-09-14 by @gfwilliams I think most likely it would have just been some slight communications issue (either Bluetooth, or Internet) when the Web IDE connected to Puck.js. Basically when the IDE connects it asks the device what it is - then it can look online and find out what modules are built in to that device, so it knows what it needs to load in and what it doesn't. If there's some issue with that then the IDE won't know, and will try to load modules that are actually built in. The code will all still work - it's just that you get the yellow warning in the IDE. To fix it, all you'd need to do is disconnect and reconnect so the IDE can figure out it's talking to a Puck.js. The next upload after that should be fine. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-09-14 by dave Thanks Gordon,
f is created by
Is the Flash module supposed to be built into the firmware? Should I try reflashing. Cheers |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-09-14 by @gfwilliams Please can you try just uploading:
Which would help to see if it's something in your code, or something else? Also, maybe check if somehow |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-09-14 by @gfwilliams Oh - actually forget that. It's not a problem at all. Basically if you have nothing in FlashEEPROM at that location, So Try:
Or make sure you do |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-09-14 by dave Thanks Gordon, you were correct as usual: the firmware upgrade had done away with the previous data. I added a check for undefined as you suggested and all is well again. Cheers |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-09-14 by dave
Hi All,
I updated my Puck to v1.94 today and was reloading the software when I got a warning message "Module Flash not found".
I'm using the FlashEEPROM module to persist some data to flash, but FlashEEPROM has require("Flash") which doesn't exist at the URL the Web IDE looks for modules. (https://www.espruino.com/modules)
Has the Flash module been deprecated/removed? If so, is there something new for persisting small amounts of data across battery changes?
Cheers
Dave
Beta Was this translation helpful? Give feedback.
All reactions