32blit / 32blit-sdk

32blit SDK
https://32blit.com
MIT License
197 stars 69 forks source link

"qspi_enable_quad" doesn't do anything #808

Open ali1234 opened 1 year ago

ali1234 commented 1 year ago

https://github.com/32blit/32blit-sdk/blob/c47e2a9bfb95c1fafaa17c9a2d980555ecca48dc/32blit-stm32/Src/quadspi.c#L390

This function does nothing on beta/release hardware, because the Micron flash doesn't have a command 0x31.

It is a left-over from alpha hardware which used a Winbond flash chip. However, it doesn't work there either, because to write the status register you have to send a write enable command first.

ali1234 commented 1 year ago

See https://github.com/ali1234/32blit-sdk/commit/5353e9f012492596d4f02077fd0715f71abfbdd2 for a fix to make this function work on Winbond flash.