Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stm32/mpu: Enable STM32WB mpu use to support qspi flash. #12512

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

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

andrewleech
Copy link
Contributor

This MR has been tested on custom hardware that includes a stm32WB55 and a qspi flash chip. Tested on both:

  • Renesas AT25SF641B
  • Macronix MX25L25673G

The Renesas QSPI Flash chip also required a change to the spiflash driver which is included in this MR:

  • drivers/spiflash: Add support for specific CR write command.

The Macronix, and winbond chips I've used on previous projects, all seem to support writing to both status and config registers with the one command, sending two bytes of data.
The Renesas chip on the other hand only supports writing one byte of data on the WRSR command, instead opting for a separate command to write the the CR register.

@dpgeorge
Copy link
Member

This is very similar to #11932.

@andrewleech
Copy link
Contributor Author

Ah yes, interesting discussion over there. I should have submitted these two commits here as two separate pr's sorry, they really are independent.

I'll take a closer look at that other one to do the spiflash change cleaner.

@andrewleech
Copy link
Contributor Author

@dpgeorge I've split this MR out, keeping this one as just the initial stm32WB55 support for mpu needed for qspi use.
This PR works as-is for qspi chips supported by the existing qspi driver like Macronix MX25L25673G

I'll re-evaluate the other commit in conjunction with #11932 and raise a new PR as needed.

@dpgeorge dpgeorge force-pushed the stm32wb55_qspi_flash branch from 4c0f705 to 37c1c5f Compare November 17, 2023 02:18
@dpgeorge dpgeorge merged commit 37c1c5f into micropython:master Nov 17, 2023
@dpgeorge
Copy link
Member

Thanks for simplifying this. Now merged.

@andrewleech andrewleech deleted the stm32wb55_qspi_flash branch November 20, 2023 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants