ArduinoCore-mbed icon indicating copy to clipboard operation
ArduinoCore-mbed copied to clipboard

mbed::MBRBlockDevice::partition wrong size when using QSPIFBlockDevice

Open tineira opened this issue 1 year ago • 1 comments

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.

tineira avatar Dec 16 '23 12:12 tineira

I wrote and read/write routine for giga flash here https://github.com/platformio/platformio-core/issues/4812 works on arduino ide

dav322 avatar Dec 21 '23 18:12 dav322