Marzogh / SPIMemory

Arduino library for Flash Memory Chips (SPI based only). Formerly SPIFlash
http://spimemory.readthedocs.io/en/latest/
GNU General Public License v3.0
438 stars 138 forks source link

Bug report - Can't Get JEDEC ID For SST26 using SPI2 #217

Open AdamMarciniak opened 4 years ago

AdamMarciniak commented 4 years ago

Bug Report

Describe the bug

I'm using a SAMD51 custom board where I have defined a custom SERCOM for SPI. My SPI is SPI2 and I'm using the SST26 chip. I know the SPI2 class I'm using works because I am able to write my own barebones spi.transfer commands and I can receive the JEDEC ID no problem. When I try and get the JEDEC ID using this library, I just get all zeros. The diagnostics code tells me there's a problem with communicating with the chip saying:

"No comms. Check wiring. Is chip supported? If unable to fix, raise an issue on Github"

I'm making sure that in the main code I make a SPIflash class like so:

SPIFlash flash(SS_FLASH, &SPI2);

SS_FLASH is the correct pin and SPI2 is the correct class as confirmed in my own spiTransfer.

Is there something else I'm missing here?

I'm using the SAMD51J20A chip in platformio.

DO NOT DELETE OR EDIT anything below this

Note 1: Make sure to add all the information needed to understand the bug so that someone can help. If any essential information is missing we'll add the 'Needs more information' label and close the issue until there is enough information.

Note 2: For support questions (for example, tutorials on how to use the library), please use the Arduino Forums. This repository's issues are reserved for feature requests and bug reports.


GitHub issue state GitHub issue title GitHub issue author GitHub issue label GitHub issue comments GitHub issue age GitHub issue last update

Yash1903 commented 3 years ago

@Marzogh can i Store file on W25Q32 using SPIMemory library