ArduinoCore-mbed
ArduinoCore-mbed copied to clipboard
mbed::MBRBlockDevice::partition wrong size when using QSPIFBlockDevice
on the arduino giga, using the method : partition(BlockDevice *bd, int part, uint8_t type, bd_addr_t start);
which states that: This is the same as partition(bd, part, type, start**, bd->size(**))
a partition is created that is many times larger than the BD size. Looking at the partition table, that partition was like 16TB instead of MB if I remember correctly. I guess that the QSPIFBlockDevice returns its size on a way that is not interpreted correctly by partition.
Trying to access that partition made the arduino to hang. I ended fixing the partition using an external device.
I wrote and read/write routine for giga flash here https://github.com/platformio/platformio-core/issues/4812 works on arduino ide