0
boseji

Hello,

I am facing issues with interfacing W25Q32 with RTL8195. As I need more flash capacity.

Currently here is the configuration I am using:

W25Q32 <-> RTL8195

/CS = D10/CS

DO = D12/MOSI

DI = D11/MISO

CLK = D13/SCK

/HOLD = PULL HIGH to 3.3V

/WP = PULL LOW to GND

VCC = 3.3V

GND = GND

 

Here is a basic Configuration read program:

#include <SPI.h>
SPISettings settings = SPISettings(2000000, MSBFIRST, SPI_MODE0);
void setup() {
Serial.begin(115200);
pinMode(10,OUTPUT);
digitalWrite(10, HIGH);
SPI.begin();
Serial.println(F("Ready!"));
}

void loop() {
Serial.println(F("SPI Read"));
digitalWrite(10, LOW);
SPI.beginTransaction(settings);
SPI.transfer(0x9F);
SPI.transfer(0x00);
Serial.println(SPI.transfer(0x00),HEX);
Serial.println(SPI.transfer(0x00),HEX);
SPI.endTransaction();
digitalWrite(10, HIGH);

digitalWrite(10, LOW);
SPI.beginTransaction(settings);
SPI.transfer(0x90);
SPI.transfer(0x00);
SPI.transfer(0x00);
SPI.transfer(0x00);
Serial.println(SPI.transfer(0x00),HEX);
Serial.println(SPI.transfer(0x00),HEX);
SPI.endTransaction();
digitalWrite(10, HIGH);
delay(1000);
}

 

The communications are failing.

The flash chip does not respond. Although the logic analyzer shows waveforms are alright.

Please look into this.

WR,

Boseji

Cora Dias 編輯了回應