2021-09-13 05:40 AM
Hello, I want to read the chip ID and unique id by using SPI but I cannot read. I am using an external library, ( https://github.com/nimaltd/w25qxx for flash ) You can find my cube documents in the attachments below. What should I do?
Thank you.
2021-09-13 05:56 AM
> How to read chip id and unique id STM32L462REY
On the flash chip or on the STM32?
2021-09-13 05:59 AM
2021-09-13 06:27 AM
The datasheet provides all you need to know.
If you don't know how to use SPI, well that is a different question. Look for an example that uses HAL_SPI_TransmitReceive in the CubeMX repository.
https://github.com/STMicroelectronics/STM32CubeL4/search?q=hal_spi_transmitreceive
2021-09-13 10:13 AM
So reading the ID of a Winbond W25Q128JV via an STM32(L4)
The library looks to have been used by others, so assume it's your SPI interfacing, either at the wiring or software level.
You should perhaps share a schematic of you implementation, and scope/logic analyzer traces of your interaction with the flash chip.
Perhaps you have a colleague or supervisor who can work with you and help you debug your implementation.
Pulling a JEDEC ID from these devices should be relatively simple, and not really require a lot of external library interaction, should be able to stand up the SPI interface, clocking the command out, and the data it responds with.