Hello,
I have an atmega2560 connected to a 512kb SPI serial flash memory SST25VF512A. I have installed the library SPIFlash in the arduino folder. I have tested it by the example code SPIFlash_ReadWrite. In the code I have made FLASH_SS = 53 (as the CS pin is connected to PB0, which is pin 53).
1) Is it mandatory to give the manufacturer's ID, as I am not able to deduce it properly from the datasheet of SPI flash memory SST25VF512A ?
2) When I give the manufacturer's ID as 0xBF, the serial monitor output I am getting is "Start...Init FAIL!". When I give the manufacturer's ID = 0, it is showing as "Start...Init OK". But, the write to SPI flash memory is not happening. The content of SPI flash memory is remaining unchanged to FF. Serial output content is shown in the SerialOutput.txt file attached with the thread. Is there anything I am missing out ?
Thanks.
I don't have access to the code right now, but, when it fails with original library doesn't it display the code that it read? If not, it should be easy to make a temporary change to the library code to display the value thats read.
Tom
This library was tested on a few chips but not all that exist out there.
I would start by verifying the pinout/wiring and CS pin.
Then I would check that the commands the lib uses are matching the commands of your specific memory chip.
Last resort is dusting off that logic analyzer :)