I use a FezDuino for a commercial development.
I’m having a big problem today with the new firmware update 2.2.0.6100.
The code below (from your example) no longer works :
const int CLUSTER_SIZE = 1024;
var tfs = new TinyFileSystem(new QspiMemory(), CLUSTER_SIZE);
if (!tfs.CheckIfFormatted()) {
//Do Format if necessary
tfs.Format();
}
else {
// Mount tiny file system
tfs.Mount();
}
The ‘Format()’ or ‘Mount()’ methods crash and I then have to erase all memory and reload the firmware with TinyCLR Config to reconnect again my board.
I updated Visual Studio 2022 and installed the new TinyCLR OS 2.2.0.6000 extension.
What happened since the last librairy update that could do this ?
Thanks in advance
I tried changing CLUSTER_SIZE value and QspiMemory size settings as you mentionned but without success…
Each time the first execution formats TFS then the program stops.
After that the board connects and disconnects alternately and it is impossible to start a new debug run.
The only solution is to connect in bootloader mode then “Erase All” and flash the GHI firmware again…
(Edit : with the APP button I can program again my board without erase and flash firmware)
Before update I used a CLUSTER_SIZE = 2048 and a new QspiMemory size = 2 * 1024 * 1024
PS : I specify that I test this program every time on several FezDuino boards
I have made a lot of tests with 3 FezDuino boards and finally the issue is always present on only one.
I don’t understand why the last week at least 2 boards could not format or mount the TFS…
Format and mount are fine with 2 boards. I try different QspiMemory size and it is ok.
I use a CLUSTER_SIZE = 2048 and memory size = 2 * 1024 *1024 (2Mo).
However with the 3rd board Format or Mount crash. I try to erase all memory (in extended deployment too) without success. I believe the external flash is corrupted…
Wouldn’t it be possible to erase or format it differently?