Closed alrvid closed 1 year ago
Memory usage change @ 9fe1909e724b00259c920a534127e19140346bcd
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:mbed_giga:giga |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_opta:opta |
:small_red_triangle: 0 - +64 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_portenta:envie_m7 |
N/A | N/A | N/A | N/A |
Nice catch!
LGTM
The size() function incorrectly returned the block size instead of the block size times the block count. This sent FATFileSystem::reformat() into an mbed_assert_internal - mbed_error - mbed_halt_system sequence, when disk_get_sector_count() in FATFileSystem.cpp calculates scount as 1 as a consequence. Thus, it wasn't possible to format FAT file systems on USB thumb drives.