Skip to content

mimxrt10xx: Also self-install when FCFB not valid#109

Merged
hathach merged 3 commits into
adafruit:masterfrom
jepler:uf2-self-install-when-blank
Apr 12, 2021
Merged

mimxrt10xx: Also self-install when FCFB not valid#109
hathach merged 3 commits into
adafruit:masterfrom
jepler:uf2-self-install-when-blank

Conversation

@jepler
Copy link
Copy Markdown
Contributor

@jepler jepler commented Apr 12, 2021

When starting with a blank flash chip, the board will enter sdp bootloader mode even if the jumpers are in the FlexSPI boot position. However, since b28b83a, tinyuf2 would not write itself to flash in this situation. Make it do so in both the "boot switch" or "fcfb invalid" cases.

Copy link
Copy Markdown
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

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

Look good, though could you merge these 2 into 1 if. We can skip the log. It is not really needed.

if ( (boot_mode == 1) ||  !fcfb_valid) 
{
    write_tinyuf2_to_flash();  
}

@jepler jepler requested a review from hathach April 12, 2021 15:24
Copy link
Copy Markdown
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

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

perfect, thank you for the ci cache fix as well.

@hathach hathach merged commit 7cd271e into adafruit:master Apr 12, 2021
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.

2 participants