CapibaraZero / fw

CapibaraZero main firmware repository
GNU General Public License v3.0
160 stars 11 forks source link

[BUG] Issue mounting sd card from esp32S3 #54

Open XyDrive opened 1 day ago

XyDrive commented 1 day ago

Describe the bug When starting the Capibara, it failed to mount the sd card. It is well in fat32 and have the correct file structure from the script make_sdcard.sh The sd card reader is well wired from the good gpio include in the code.

To Reproduce sd card reader GPIO : SD_CARD_CS 13 SD_CARD_MOSI 35 SD_CARD_SCK 36 SD_CARD_MISO 37

Expected behavior To have acces to the sdcard with the Capibara

Stacktrace:

log from screen when starting de Capibara:

[ 2334][E][esp32-hal-spi.c:215] spiAttachMISO(): HSPI Does not have default pins on ESP32S3! [ 2606][E][esp32-hal-cpu.c:110] addApbChangeCallback(): duplicate func=0x420124f4 arg=0x3fc9898c

Loop Loop [ 8860][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed [ 8865][E][sd_diskio.cpp:624] ff_sd_status(): Check status failed [ 9371][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed Loop Loop

GUI inter in BadUsb

[ 9876][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed [ 9881][E][vfs_api.cpp:105] open(): /sd/ducky does not exist, no permits for creation Loop

andreock commented 1 day ago

Can you try with this firmware? capibaraZero_0_5_2_esp32-s3-devkitc-1.zip

XyDrive commented 1 day ago

Nop, not working sadly

start screen and start capibara

[ 2315][E][esp32-hal-spi.c:215] spiAttachMISO(): HSPI Does not have default pins on ESP32S3! [ 2587][E][esp32-hal-cpu.c:110] addApbChangeCallback(): duplicate func=0x420124f4 arg=0x3fc9898c Loop ... Loop #Open GUI USB rubber ducky [ 8099][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed [ 8104][E][sd_diskio.cpp:624] ff_sd_status(): Check status failed [ 8610][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed Loop [ 9115][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed [ 9120][E][vfs_api.cpp:105] open(): /sd/ducky does not exist, no permits for creation Loop