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.
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.