Skip to content

Unify iMX RT flash config and add Metro M7 1011 #3522

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 2 commits into from
Oct 9, 2020

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Oct 7, 2020

This unifies the flash config to the settings used by the Boot ROM.
This makes the config unique per board which allows for changing
quad enable and status bit differences per flash device. It also
allows for timing differences due to the board layout.

This change also tweaks linker layout to leave more ram space for
the CircuitPython heap.

This unifies the flash config to the settings used by the Boot ROM.
This makes the config unique per board which allows for changing
quad enable and status bit differences per flash device. It also
allows for timing differences due to the board layout.

This change also tweaks linker layout to leave more ram space for
the CircuitPython heap.
@tannewt tannewt added enhancement mimxrt10xx iMX RT based boards such as Teensy 4.x labels Oct 7, 2020
@tannewt tannewt added this to the 6.x.0 - Features milestone Oct 7, 2020
@tannewt tannewt requested review from arturo182 and jepler October 8, 2020 00:28
@tannewt
Copy link
Member Author

tannewt commented Oct 9, 2020

@jepler Do you have time to review this?

Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

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

Some items discussed on Discord:

  • native ioctl was not actually the problem, but is good to have
  • the linker treatment of flexspi_nor_flash_ops.o is no longer required, as individual functions are marked

I didn't spot anything hinky but I was not able to usefully review the flash_config.c file changes. No testing performed.

@tannewt
Copy link
Member Author

tannewt commented Oct 9, 2020

Thanks @jepler! I left fsl as-is because it's directly sourced from the sdk.

@tannewt tannewt merged commit 699f19f into adafruit:main Oct 9, 2020
@arturo182
Copy link
Collaborator

@tannewt have you tested this code on any boards? I just tried HEAD of main branch and my Feather RT1011 doesn't boot, it works for the v6 beta 3, bisecting between HEAD and beta 3 led me down to this commit as the breaking one 😅

@tannewt
Copy link
Member Author

tannewt commented Oct 14, 2020

Yes. I don't have your boards so I didn't test them. I added you as a reviewer for that reason. I did test on the EVKs (1020 is broken), the new Metro and the Teensys.

@arturo182
Copy link
Collaborator

Damn 😞

@tannewt tannewt mentioned this pull request Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement mimxrt10xx iMX RT based boards such as Teensy 4.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants