Hello all,
I have a AT25SF081 Flash memory by Adesto Technologies that I am trying to write to and read the memory on using the SPI interface. I am using a Atmel ATSAMD20J18 MCU to do so with Atmel Studio environment.
I have been having a hard time understanding why what I was writing into the different memory blocks was not what I was reading from them, so I tested by reading the device ID and manufacturer ID.
According to the datasheet of the flash, when I write the Read Manufacturer and Device ID command (0x9F) , I am supposed to read the following bytes on the SO pin :
0x1F , 0x85 , 0x01.
But when I write that command, the second byte is blank, and I get 0x00 instead of 0x85, yet the first and last byte of the 3 bytes are correct. I have a hard time comprehending what is going on, does anyone have an idea?
Here is a screenshot of logic analyzer connected to the SPI lines:
Any help is appreciated, thank you!
MCU doc : http://www.atmel.com/Images/atmel-42129-sam-d20_datasheet.pdf
AT25SF081 doc: http://www.adestotech.com/wp-content/uploads/DS-AT25SF081_045.pdf
I have a AT25SF081 Flash memory by Adesto Technologies that I am trying to write to and read the memory on using the SPI interface. I am using a Atmel ATSAMD20J18 MCU to do so with Atmel Studio environment.
I have been having a hard time understanding why what I was writing into the different memory blocks was not what I was reading from them, so I tested by reading the device ID and manufacturer ID.
According to the datasheet of the flash, when I write the Read Manufacturer and Device ID command (0x9F) , I am supposed to read the following bytes on the SO pin :
0x1F , 0x85 , 0x01.
But when I write that command, the second byte is blank, and I get 0x00 instead of 0x85, yet the first and last byte of the 3 bytes are correct. I have a hard time comprehending what is going on, does anyone have an idea?
Here is a screenshot of logic analyzer connected to the SPI lines:
Any help is appreciated, thank you!
MCU doc : http://www.atmel.com/Images/atmel-42129-sam-d20_datasheet.pdf
AT25SF081 doc: http://www.adestotech.com/wp-content/uploads/DS-AT25SF081_045.pdf