FlashEEPROM timeout while writing #1852
Replies: 12 comments
-
Posted at 2016-12-27 by @allObjects Jens, I assume you entered this in the console pane of the Espruino Web IDE... Doing so may conflict with the sending of the statement(s) / uploading and the execution of them because of the single threaded execution of JavaScript and setup of communication from console to Espruino board and back. Try to paste it in the edit pane and upload the code to the board. If this does not help, place it in a function, upload the function, and then invoke it. Take a look at this conversation. It covers some aspects of what you experience, even thought he conversation title may no read like that to you. Look for the 2 cents posts. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-28 by user71506 @allObjects, Hi I tried all that you suggested and still have the timeout problem (in the web console pane as well as a program). Any other ideas? Funny seems that when I write a string with a specific length and read it afterwards I get a length number ox 0xff - so the length seemed to be stored somehow. Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-28 by @allObjects Jens, what board are you using? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-29 by user71506 A puck.js (received about 1-2 weeks ago) with the 1v90 firmware. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-29 by @allObjects Jens, take a look at this conversation about low level flash access. ...may be you already have... ;/ |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-29 by user71506 Hi @allObjects, Yep, I used the very simple example from @MaBecker and that is what I get instead of his output:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-29 by @allObjects ...weird... let me test on my puck(s)... a bit later. I suspect that something else is going on while this write is happening... (not from your code, since you just use the bare @MaBecker example). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-04 by @gfwilliams That is strange. I just tried on the 1v90.12 build and it works fine for me - but I guess it's possible that there is some corrupted data already in flash. Could you try |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-05 by user71506 Ok, I tried the code below:
and got:
Am I doing something stupidly wrong or do I have a faulty puck? Thanks again |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-05 by @gfwilliams That's really interesting - it could be related to some other problems people have been having with saving to flash. Have you tried removing the battery from your puck and re-inserting it to power cycle it? It could be that the software has got into a strange state. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-05 by user71506 Ok, after a power cycle the flash worked as expected again. Unfortunately only for a very short time (after 3-5 more flash write attempts it breaks again). Hope this can be fixed soon. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-05 by @gfwilliams Interesting - thanks for the update. By 'flash write attempts', what do you mean? From a clean power-on, what exactly did you do to get it to happen? I just uploaded that code repeatedly and I can't reproduce it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-12-26 by user71506
Hi,
Did anyone of you experience the same error?
Thanks
Jens
Beta Was this translation helpful? Give feedback.
All reactions