Marzogh / SPIMemory

Arduino library for Flash Memory Chips (SPI based only). Formerly SPIFlash

Home Page:http://spimemory.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SAMD21 - remove CS pin pull-up resistor to make it work

abhaysbharadwaj opened this issue · comments

I was facing issues with my custom SAMD21E18 board where my chip ID was returning 00, and all other actions of "test" example was failing with "error".

After trying put multiple things (and testing my SERCOM configurations), I was able to understand that my SPI communication was working fine (Was able to work with an SD card).

According to W25Q64 datasheet: The SPI Chip Select (/CS) pin enables and disables device operation. When /CS is high the device is deselected and the Serial Data Output (DO, or IO0, IO1, IO2, IO3) pins are at high impedance.

I think there is an issue where the CS pin is not getting driven low properly with this library.

Desoldering the CS pull-up resistor solved the issue for me.