SPI flash data logger library exception

Someone else in this forum posted about a spiflash logger bug 7 years ago, but no one replied to it. So I guess I’ll try posting about it here again to see if anyone knows how to fix this. An exception is thrown when the device uses spiflash logger library to read from the flash. The error being shown in the logs is:

> [Device]|ERROR: Error, marker not found at 3696
> [Device]|ERROR: in _getObject …ashlogger.device.lib.nut#2.2.0:510
> [Device]|ERROR: from unknown …ashlogger.device.lib.nut#2.2.0:381

I don’t know what’s causing this error and would like some guidance on troubleshooting this and fixing it.

Thank you

Hi, we’re taking a look at the SpiFlashLogger library and will post back here when there’s a fixed version available.

In the meantime you could copy the library source into your own squirrel code and try the fix suggested in the older thread.

I tried the fix and it was perpetually throwing this error and restarting the device:

|2025-03-13T13:04:46.599 +00:00|[Device]|ERROR: bad parameters to blob.seek(int[, char])|
|---|---|---|
|2025-03-13T13:04:46.604 +00:00|[Device]|ERROR:   in unknown device_code:731|

I removed the source code from the device code. Hopefully, there’s an official fix for this soon.