Thanks so much for your help, @peekay123. Just went down the rabbit hole of trying to update particle-cli at its suggestion and lost an hour trying to troubleshoot that, but we’re back! Though it appears I have to compile in the cloud twice using Particle Dev in order to get a new .bin file… I may post about that elsewhere shortly.
Yes, I have seen that SPIFFS is meant for NOR so this might not be a wise approach on my part I’m just really hoping I can find some sort of truly embedded large storage (~1 Gb or bigger) solution.
The part is a Micron MT29F1G01ABAFDSF and I have set Adafruit_TinyFlash.h defines to
#define CHIP_BYTES 64L * 2176L // 64 pages * 2176 bytes
#define MAN_ID 0x2C
#define DEV_ID 0x14
#define PAGE_SIZE 2176
#define CMD_ID 0x9F
following the datasheet
I can now get through that
flash.begin(D2) call so, at the very least, I’m reading the MAN_ID and DEV_ID. I’m now getting to errno -10010 in
test_spiffs() which I see is a
SPIFFS_ERR_BAD_DESCRIPTOR. Can’t get past that but I’m trying to play with the
CMD_* options in Adafruit_TinyFlash.h. I’m beginning to more deeply appreciate some of the NOR vs. NAND flash differences now as well; maybe I should switch to NOR… Anyway, thanks again, @peekay123!