Hello,
I'm trying to connect the Adesto AT25SF041 flash memory chip to a Teensy 3.2.
I use the SPIFLash library that comes with the the Teensyduino distribution as well as Sketch SPIFlash_ReadWrite that is contained in this library as example.
Unfortunately it's not possible to establish communication to the memory.
I get replies that Init failed, Decive ID=0, Flash content also zero.
I double checked the wiring, so I assume that's not the problem. The commands are also almost the same as the commands already implemented in this library.
The only option I'm not sure about is the Clockspeed of the device. Usually I run the Teensy with 72 MHz, but I tested 24Mhz as well. Clock Divider is set by default to Div2 and I tried to change
the hard coded clock speed in SPISettings(clock, MSBFIRST, SPI_MODE0) from 33 Mhz to 24Mhz.
Unfortunately with no success.
Is there anything else that needs to be adapted in the libraries to access a new flash memory?
I appreciate all comments.
Thank you for reading.
I'm trying to connect the Adesto AT25SF041 flash memory chip to a Teensy 3.2.
I use the SPIFLash library that comes with the the Teensyduino distribution as well as Sketch SPIFlash_ReadWrite that is contained in this library as example.
Unfortunately it's not possible to establish communication to the memory.
I get replies that Init failed, Decive ID=0, Flash content also zero.
I double checked the wiring, so I assume that's not the problem. The commands are also almost the same as the commands already implemented in this library.
The only option I'm not sure about is the Clockspeed of the device. Usually I run the Teensy with 72 MHz, but I tested 24Mhz as well. Clock Divider is set by default to Div2 and I tried to change
the hard coded clock speed in SPISettings(clock, MSBFIRST, SPI_MODE0) from 33 Mhz to 24Mhz.
Unfortunately with no success.
Is there anything else that needs to be adapted in the libraries to access a new flash memory?
I appreciate all comments.
Thank you for reading.