Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W25qxx_ReadID work wrong on high speed #39

Open
YoulDHead opened this issue Apr 19, 2023 · 1 comment
Open

W25qxx_ReadID work wrong on high speed #39

YoulDHead opened this issue Apr 19, 2023 · 1 comment

Comments

@YoulDHead
Copy link

Hello!

I have stm32f302c8 and W25Q512 flash. If my stm chip configured to work on 8MHz (from HSI) all ok. If I change clock source to PLL and use 56MHz (x14) W25qxx_ReadID (and probably all other functions that use W25qxx_Spi()) - work wrong. For example W25qxx_ReadID receives only first byte with manufacturer ID, two next bytes are zero.

It can be fixed with increasing timeout from 100 to 150 in the call of
HAL_SPI_TransmitReceive(&_W25QXX_SPI,&Data,&ret,1,150);

@nimaltd
Copy link
Owner

nimaltd commented Apr 20, 2023

Hello. Please decrease your SPI speed in configuration and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants