Hello all! I'm having issues with the SPIFlash library behaving weirdly with a Spansion S25FL128L SPI flash chip. Running EraseEverything seems to work, but it finishes in 0 seconds, which seems abnormal. Not sure if the erase is successful or not. Also, RawHardwareTest continuously fails at the same address with the following message, even after running EraseEverything beforehand:
The memory and block sizes are detected correctly. Both sketches are identical to the stock examples; however, I removed the id2chip function in RawHardwareTest and all references to it, as it was eating up too much RAM on an Arduino Uno. (RawHardwareTest would end up running out of RAM and crashing.)
Hardware setup: Arduino Uno through hardware SPI and 5v-3.3v level shifters to the Spansion flash memory. That's it.
Can anybody verify these results or offer any advice? Thanks!
EDIT: I attempted another full erase-test cycle, and the erase seems to be successful, but I repeatedly have errors while trying to write the signatures. It's at the same address every time...bad silicon?
Code:
Previous data found at address 7864320
You must fully erase the chip before this test
found this: 00 00 00 00 00 00 00 00
correct: 00 78 00 00 2D 62 78 FC
The memory and block sizes are detected correctly. Both sketches are identical to the stock examples; however, I removed the id2chip function in RawHardwareTest and all references to it, as it was eating up too much RAM on an Arduino Uno. (RawHardwareTest would end up running out of RAM and crashing.)
Hardware setup: Arduino Uno through hardware SPI and 5v-3.3v level shifters to the Spansion flash memory. That's it.
Can anybody verify these results or offer any advice? Thanks!
EDIT: I attempted another full erase-test cycle, and the erase seems to be successful, but I repeatedly have errors while trying to write the signatures. It's at the same address every time...bad silicon?
Last edited: