Espruino Pico - E.unmountSD() #4743
Replies: 1 comment
-
Posted at 2015-06-03 by @gfwilliams Sure - sounds like a good plan. I've just added it so it'll be in the next build. Posted at 2015-06-03 by net-tobi When will the next build be created? I currently just see the one before. Posted at 2015-06-03 by @gfwilliams Posted at 2015-06-03 by net-tobi With the build you sent me, the serial console stucks suddenly. When I reconnect the Pico it is responding again and the following error flag is set:
Posted at 2015-06-03 by @gfwilliams What code were you uploading to it? Do you have something small as an example? Are you sure it's not just that some bit of code is taking a long time to execute? Posted at 2015-06-03 by net-tobi It was very complex code with access to the SD card, different libraries I wrote and modules... I could reproduce it... But for now it is working... The strange thing is, I didn't make any change... I just disconnected the board a few times and reconnected it to USB... UPDATE: I have the problem again. I cannot post the code because it is related to my masters thesis therefore I cannot publish it here. Posted at 2015-06-03 by @gfwilliams I'm not sure what to suggest - and the old firmware definitely works? Maybe try Posted at 2015-06-03 by net-tobi I try to come up with more details soon Posted at 2015-06-03 by net-tobi Ctrl+C doesn't work. Posted at 2015-06-03 by net-tobi Seems to be just a problem with the build you sent me. I had strange problems. Sometimes I got it working by just adding a few white space characters. After removing them it didn't work again. Looked like weird problems with the JS parser. I can not find a bin file for the most recent commit: What happend here? Posted at 2015-06-03 by @gfwilliams
Ok, I'd think that was almost certainly that there's something in your code that is taking a long time to execute during the code upload? Maybe that build is marginally slower than the last and so it suddenly starts having problems. In that case, if it breaks after upload, try It sometimes happens if you:
As a start, try doing any function calls you need to initialise from inside
Argh. The joys of Python :( Looks like the build machine has an older version of python in that doesn't contain a library function I just started using (in order to get better version numbers). I'll have to fix that, but it'll be tomorrow now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-06-03 by net-tobi
Hello Gordon,
I experienced that the system forgets about the configuration of the SD card reader made initially when you call "E.unmountSD()"
Would it be possible that Espruino keeps the settings for further SD-Card requests? In my project I am doing lots of unmounts to be sure that the SD-card filesystem doesn't corrupt when the card is being removed at any time. I have to set the initial settings now before every SD card access.
Best,
Tobias
Beta Was this translation helpful? Give feedback.
All reactions