2021-08-25 07:13 AM
Hello Every one i am using the STM32WB35CC SoC for custom BOARD, I am facing an issue that when i tries to write EEPROM I get correct response checked using Logic Analyzer but when i tried to read eeprom I GET HIGH impedance with every address. The Eeprom i am using is CAT25320 .... waiting for solution
2021-08-27 02:47 AM
i changed the pin toggling for CS Pins following are my results:
WREN:
WRITE:
WRDI:
Read:
I am still unable to read data
2021-08-27 03:16 AM
Place here the analyzer waweform picture for write and read operation. Perharps read op. has roblem too. Without the waveform is not possible give any help.
2021-08-27 03:38 AM
Sorry my bad i tried to copy paste images
WREN:
WRITE:
WRDI:
READ:
2021-08-27 04:32 AM
As you can see on first picture, value of status register is 0x0E. So, bits BP0 and BP1 are set and whole adress space of EEPROM is write protected. WEL bits alow write only to unprotected pages. Please, look into datasheet, how to clear this bits. I don't have enough time for that today.
2021-08-27 04:55 AM
First of all thank you for quick response but my results are same with even WRSR 0x02
i have attached the results below:
WREN with WRSR to remove protection
WRITE:
Then i wait until busy flag set low:
After Disabling write i read for data
2021-08-27 05:28 AM
Try to set CLKPolarity to SPI_POLARITY_LOW and CLKPhase to PSI_PHASE_1EDGE
2021-08-27 05:34 AM
Similar Results
2021-08-27 05:58 AM
I dont understand, why you have in read operation some pulses on MOSI. It is strange. Do you use HAL function for reading?
2021-08-27 06:16 AM
Yes i do use HAL function for reading over SPI
2021-08-27 11:50 AM
How the EEPROM is connected? Short wires? Breadboard? Is there cca 100nF capacitor near the EEPROM. Is the EEPROM power suply OK?
You write from adress 0x01. Try to read from adr. 0x01 too. We dont know what was writen to adr 0x00. Perharps first byte is OK.
It seems as some interference could interfere SPI operations.