Skip to content

Add mass-erase command - #747

Merged
labbott merged 2 commits into
masterfrom
mass_erase
Oct 22, 2026
Merged

labbott merged 2 commits into
masterfrom
mass_erase

Conversation

@labbott

@labbott labbott commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Sometimes it's necessary to really start over. This adds a humility mass-erase command. Note this does requires a hubris archive to get the proper chip name which is required for mass erase.

Comment thread cmd/mass-erase/src/lib.rs
}
});

// o7

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🫡

Sometimes it's necessary to really start over. This adds a
`humility mass-erase` command. Note this does requires a hubris
archive to get the proper chip name which is required for
mass erase.
@labbott

labbott commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

For reference

$ ./target/debug/humility -a ~/hubris/target/grapefruit-a/dist/default/build-grapefruit-a-image-default.zip mass-erase --yes
humility: attaching with chip set to "STM32H753ZITx"
humility: attached via 38c6:1:Some("00000080001c46d05342c87d1aa86e928c0182db4c504355") OxLink (CMSIS-DAP)
      Erasing   24s   

labbott@labbott-desktop2:~/humility$ ./target/debug/humility -a ~/hubris/target/grapefruit-a/dist/default/build-grapefruit-a-image-default.zip reset
humility: attached via 38c6:1:Some("00000080001c46d05342c87d1aa86e928c0182db4c504355") OxLink (CMSIS-DAP)
humility: skipping measurement token handoff
labbott@labbott-desktop2:~/humility$ ./target/debug/humility -a ~/hubris/target/grapefruit-a/dist/default/build-grapefruit-a-image-default.zip probe
humility: attached via 38c6:1:Some("00000080001c46d05342c87d1aa86e928c0182db4c504355") OxLink (CMSIS-DAP)
humility:        probe => OxLink (CMSIS-DAP), VID 38c6, PID 0001
humility: probe serial => 00000080001c46d05342c87d1aa86e928c0182db4c504355
humility:         core => Cortex-M7
humility: manufacturer => STMicroelectronics
humility:         chip => STM32H7, revision 0x2003
humility:       status => locked up, debug halt
humility:  debug units => CSTF(x2) CTI(x2) DWT ETM FPB ITM SCS SWO TMC TPIU
humility:         CSTF => 0x5c004000, 0x5c013000
humility:          CTI => 0x5c011000, 0xe0043000
humility:          DWT => 0xe0001000
humility:          ETM => 0xe0041000
humility:          FPB => 0xe0002000
humility:          ITM => 0xe0000000
humility:          SCS => 0xe000e000
humility:          SWO => 0x5c003000
humility:          TMC => 0x5c014000
humility:         TPIU => 0x5c015000
humility: WARNING: archive mismatch: image ID in archive ([14, 79, 2c, 97, ec, 23, 88, f6]) does not equal ID at 0x8004828 ([ff, ff, ff, ff, ff, ff, ff, ff]); register contents will not be displayed symbolically
humility:           R0 => 0x0        
humility:           R1 => 0x0        
humility:           R2 => 0x0        
humility:           R3 => 0x0        
humility:           R4 => 0x0        
humility:           R5 => 0x0        
humility:           R6 => 0x0        
humility:           R7 => 0x0        
humility:           R8 => 0x0        
humility:           R9 => 0x0        
humility:          R10 => 0x0        
humility:          R11 => 0x0        
humility:          R12 => 0x0        
humility:           SP => 0xffffffd8 
humility:           LR => 0xfffffff9 
humility:           PC => 0xfffffffe 
humility:          PSR => 0x1000003  
humility:          MSP => 0xffffffd8 
humility:          PSP => 0x0        
humility:          SPR => 0x0        
humility: Fault detected! Raw CFSR: 0x401
humility: Bus Fault accessing address <unknown>: Imprecise data access error, 
humility: MM Fault accessing address <unknown>: MM fault from instruction access

@labbott
labbott merged commit 28c8454 into master Oct 22, 2026
15 checks passed
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.

3 participants