stm32 EEPROM Read
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-25 7: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
- Labels:
-
EEPROM devices
-
STM32WB series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-27 2: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-27 3: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-27 3:38 AM
Sorry my bad i tried to copy paste images
WREN:
WRITE:
WRDI:
READ:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-27 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-27 4: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-27 5:28 AM
Try to set CLKPolarity to SPI_POLARITY_LOW and CLKPhase to PSI_PHASE_1EDGE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-27 5:34 AM
Similar Results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-27 5: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-27 6:16 AM
Yes i do use HAL function for reading over SPI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
