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

NVM toml fix (MRAM) #5506

Merged
merged 2 commits into from
Oct 25, 2021
Merged

NVM toml fix (MRAM) #5506

merged 2 commits into from
Oct 25, 2021

Conversation

maholli
Copy link

@maholli maholli commented Oct 24, 2021

This PR fixes #5501.

I recently discovered external flash MRAM builds had stopped working on hardware (but built just fine). Originated around the time of 5810461 (thanks @dhalbert for helping me find this), but actual cause turned out to be two-fold:

  1. devices.h toml generator was missing three variables : no_ready_bit, no_erase_cmd, and no_reset_cmd.
  2. spi_flash_init() was not setting the correct pins in the case of EXTERNAL_FLASH_QSPI_SINGLE. I'm not sure if it's just a quirk of the MRAM devices or if these #ifdef weren't set up properly, but since I'm the only one using EXTERNAL_FLASH_QSPI_SINGLE on the samd port, I just changed the pins back to what they had been (i.e. all of them).

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and since it fixes your problem, that's the test. Thanks!

@dhalbert dhalbert merged commit 7377375 into adafruit:main Oct 25, 2021
@maholli maholli deleted the nvm-toml-fix branch October 25, 2021 20:51
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

Successfully merging this pull request may close these issues.

External flash MR2xH40 builds - but doesn't work
2 participants