0

NeoTrellis M4 flash_erase fails
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

NeoTrellis M4 flash_erase fails

by mgorr on Thu Dec 06, 2018 9:21 am

I'm trying to erase the SPI flash on the NeoTrellis M4. I have cloned the latest Adafruit_SPIFlash from github, loaded the flash_erase example, and changed the FLASH_TYPE define to SPIFLASHTYPE_W25Q64, which I believe is the 8MB flash of the NeoTrellis. Is there anything else I'm missing?

Here is the output from the serial monitor
Code: Select all | TOGGLE FULL SIZE
Adafruit SPI Flash Total Erase Example
Flash chip JEDEC ID: 0x0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This sketch will ERASE ALL DATA on the flash chip!
Type OK (all caps) and press enter to continue.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Erasing flash chip in 10 seconds...
Note you will see stat and other debug output printed repeatedly.
Let it run for ~30 seconds until the flash erase is finished.
An error or success message will be printed when complete.
Failed to erase chip!

mgorr
 
Posts: 13
Joined: Fri Nov 09, 2012 4:47 pm

Re: NeoTrellis M4 flash_erase fails

by mgorr on Fri Dec 07, 2018 2:35 pm

I figured it out. I downloaded the QSPI library. Reading the tutorial helps...

mgorr
 
Posts: 13
Joined: Fri Nov 09, 2012 4:47 pm

Please be positive and constructive with your questions and comments.