File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ version = "0.1.0"
77
88[dependencies ]
99cortex-m = " 0.7.0"
10- flash-algorithm = " 0.4.0"
10+ flash-algorithm = { version = " 0.4.0" , default-features = false , features = [
11+ " panic-handler" ,
12+ ] }
1113
1214# this lets you use `cargo fix`!
1315[[bin ]]
Original file line number Diff line number Diff line change @@ -30,5 +30,4 @@ cat <<EOF
3030 pc_uninit: $( sym UnInit)
3131 pc_program_page: $( sym ProgramPage)
3232 pc_erase_sector: $( sym EraseSector)
33- pc_erase_all: $( sym EraseChip)
3433EOF
Original file line number Diff line number Diff line change @@ -74,11 +74,6 @@ impl FlashAlgorithm for RP2040Algo {
7474 Ok ( Self { funcs } )
7575 }
7676
77- fn erase_all ( & mut self ) -> Result < ( ) , ErrorCode > {
78- // todo
79- Err ( ErrorCode :: new ( 0x70d0 ) . unwrap ( ) )
80- }
81-
8277 fn erase_sector ( & mut self , addr : u32 ) -> Result < ( ) , ErrorCode > {
8378 ( self . funcs . flash_range_erase ) (
8479 addr - FlashDevice . dev_addr ,
You can’t perform that action at this time.
0 commit comments