-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
I was trying to work from the rp2040 example, but it seems to be outdated. I tried to adjust it to make it work and adjusted the pins to my board layout, see my diff:
I have a fat32 formatted SD card in the reader (done via gparted). When trying to run the example, I get the following error:
❯ cargo run
Finished `dev` profile [optimized + debuginfo] target(s) in 0.07s
Running `probe-rs run --chip RP2040 target/thumbv6m-none-eabi/debug/embedded-fatfs-example`
Erasing ✔ [00:00:00] [###########################################################################################################################] 88.00 KiB/88.00 KiB @ 93.02 KiB/s (eta 0s )
Programming ✔ [00:00:01] [###########################################################################################################################] 88.00 KiB/88.00 KiB @ 46.90 KiB/s (eta 0s ) Finished in 2.856s
INFO Hello World!
└─ embedded_fatfs_example::____embassy_main_task::{async_fn#0} @ src/main.rs:27
DEBUG Found card with size: 7948206080bytes
└─ sdspi::{impl#1}::init::{async_fn#0}::{async_block#0} @ /home/dasprid/dev/embedded-fatfs/sdspi/src/fmt.rs:125
INFO Initialization complete!
└─ embedded_fatfs_example::____embassy_main_task::{async_fn#0} @ src/main.rs:72
WARN Unknown opcode fa in bootjmp boot sector field
└─ embedded_fatfs::boot_sector::{impl#1}::validate @ /home/dasprid/dev/embedded-fatfs/embedded-fatfs/src/fmt.rs:151
ERROR invalid bytes_per_sector value in BPB: expected a power of two but got 36352
└─ embedded_fatfs::boot_sector::{impl#0}::validate_bytes_per_sector @ /home/dasprid/dev/embedded-fatfs/embedded-fatfs/src/fmt.rs:164
ERROR panicked at src/main.rs:105:6:
Filesystem tests failed!: CorruptedFileSystem
└─ panic_probe::print_defmt::print @ /home/dasprid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/panic-probe-0.3.2/src/lib.rs:104
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels