cannot mount SDCard on RP2040 Adalogger #16557
-
I wanted to use the SDCard that is part of the Adafruit Feather RP2040 Adalogger. As there is no prebuild MPY for the Adalogger I use the Feather prebuild. I installed the sdcard using Thonny.
and get
The pins are the one given for the Adalogger product and are working perfectly in Arduino and Circuitpython. It is not the disk, because if I, without touching the disk, install CPY all is working. I also tried to replace the uos.mount(sd,'/sd') by uos.mount(vfs.VfsFat(sd),'/sd'), but same error. Any hint on the problem would be appreciated. PS: I have no issue with my Arduino program, but wanted to demonstrate the feasibility of Python. The CPY basically works, but is (by design?) somewhat closed. Edit:
I could indeed access the Wav file stored on the disk (I got the sector number from HxD EDIT: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
have you tried something like:
to declare the right filesystem type? |
Beta Was this translation helpful? Give feedback.
-
OK, will try with a smaller disk and FAT32. As I know that Elm Chan's fatfs supports exFAT and MPY is using fatfs, any suggestion on where to start to check the missing bit? Anyhow: the modified sdcard.py did not help |
Beta Was this translation helpful? Give feedback.
-
Issue solved: inserting |
Beta Was this translation helpful? Give feedback.
Issue solved:
ExFAT must be activated in fatfs. So far, only three stm32 boards (Arduino_nicla_vision, Arduino_giga, Arduino_opta) had this done
inserting
#define MICROPY_FATFS_EXFAT (1)
into mpconfigboard.h enabled ExFat and sdcard was mounted correctly
Thanks for helping me