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

Fix full chip erase #3405

Merged
merged 1 commit into from
Apr 6, 2023
Merged

Conversation

haslinghuis
Copy link
Member

Fixes: #3404

@haslinghuis haslinghuis added this to the 10.10.0 milestone Apr 5, 2023
@haslinghuis haslinghuis self-assigned this Apr 5, 2023
@sonarcloud
Copy link

sonarcloud bot commented Apr 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

github-actions bot commented Apr 5, 2023

Do you want to test this code? Here you have an automated build:
Betaflight-Configurator-Android
Betaflight-Configurator-Linux
Betaflight-Configurator-macOS
Betaflight-Configurator-Windows
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

@blckmn
Copy link
Member

blckmn commented Apr 5, 2023

AUTOMERGE: (FAIL)

  • github identifies PR as mergeable -> FAIL
  • assigned to a milestone -> PASS
  • cooling off period lapsed -> PASS
  • commit count less or equal to three -> PASS
  • Don't merge label NOT found -> PASS
  • at least one RN: label found -> PASS
  • Tested label found -> PASS
  • assigned to an approver -> PASS
  • approver count at least three -> FAIL

Copy link
Member

@nerdCopter nerdCopter left a comment

Choose a reason for hiding this comment

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

  • verified on two FC's

@howels
Copy link

howels commented Apr 6, 2023

Verified here as well.

@howels
Copy link

howels commented Apr 6, 2023

@haslinghuis flash is still erased if expert mode is disabled

@haslinghuis
Copy link
Member Author

haslinghuis commented Apr 6, 2023

Yes that's by design (only hidden now as requested by @blckmn ) - but has not changed as part of this PR.

It's an expert setting as normally we want to have this enabled to minimize support issues.

@howels
Copy link

howels commented Apr 6, 2023

Yes that's by design (only hidden now as requested by @blckmn ).

It's an expert setting as normally we want to have this enabled to minimize support issues.

Breaks H730 unless expert mode enabled. Why break by default? At least target the config partition specifically and do the wipe cleanly.

@nerdCopter
Copy link
Member

H730 needs custom flash address? is this why it breaks?

@haslinghuis
Copy link
Member Author

Also in the documentation for the SPRacing Flight Controllers it's stated to disable full chip erase IIRC.

@haslinghuis haslinghuis requested a review from blckmn April 6, 2023 18:22
@blckmn blckmn merged commit 92484c3 into betaflight:master Apr 6, 2023
8 checks passed
@blckmn
Copy link
Member

blckmn commented Apr 6, 2023

disable

We might need to have a disable flash erase option for some targets. Perhaps as part of the populating cloud build options we can include if it's on or off.

@haslinghuis haslinghuis deleted the fix-full-chip-erase branch April 6, 2023 20:59
@howels
Copy link

howels commented Apr 6, 2023

If the intent is to wipe configuration then the DFU command could target the config partition only for erasure.
However, I cannot see a list of partition layouts for all targets that would enable this easily- which might be why we are simply erasing the entire flash chip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: COMPLETED
Development

Successfully merging this pull request may close these issues.

master full-chip erase when toggle is disabled.
4 participants