cancel
Showing results for 
Search instead for 
Did you mean: 

How to read chip id and unique id STM32L462REY

luplupp
Associate

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.

4 REPLIES 4
TDK
Guru

> How to read chip id and unique id STM32L462REY

On the flash chip or on the STM32?

If you feel a post has answered your question, please click "Accept as Solution".
luplupp
Associate

Hello @TDK​ , an external flash chip and here is the documentation of it.

Thank you,

TDK
Guru

The datasheet provides all you need to know.

0693W00000DmzzhQAB.png 

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

If you feel a post has answered your question, please click "Accept as Solution".

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..