|
Forum Index : Microcontroller and PC projects : Misleading error message : File System Error
| Author | Message | ||||
| MustardMan Senior Member Joined: 30/08/2019 Location: AustraliaPosts: 175 |
Hi, This doesn't really fall into the category of a bug, but it is misleading and could possibly be better. I loaded a BAS (text) file onto an SD card using a PC, and a while later decided to load that file into an Explore 100 (MMbasic v 5.05.01). The file was an "uncrunched" version of the program already running on the E100 (crunched using MMedit). When I executed LOAD "PROGRAM.BAS" I was greeted with "Error: File system error" At first I though I had a corrupted card, but other files loaded OK. I next thought corrupted file. Reading the file back on my PC indicated the file was fine. Card format? No, it was FAT32 and MMbasic is supposed to read FAT32. After several days of intermittent head scratching (it was not a big issue, but I wanted to find out what was going on) I eventually realised that the uncrunched version of PROGRAM.BAS was too big to fit in memory. To my mind the error message should have been something along the lines of "Error: Out of memory" as there was nothing wrong with the card or the file system on it. Cheers, Edited 2020-09-06 20:56 by MustardMan |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
Thanks Owen. I will add it to the to-do-list for the next release. Geoff Geoff Graham - http://geoffg.net |
||||
| MustardMan Senior Member Joined: 30/08/2019 Location: AustraliaPosts: 175 |
Thanks Geoff. No biggie, and definitely not a priority. I had put my uncrunched program on the card to serve as a backup in case everything on my PC went out, and then tried to load it without even thinking it was considerably larger than the crunched version! I eventually cottoned on when I took note of the 'memory' command results and compared it to the file size reported by 'files'. I then tried the crunched version and it worked just fine (of course). Cheers, |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |