SD card mounting issue with latest ESP32 Arduino package

Inquiry and support for Freematics products
Post Reply
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

SD card mounting issue with latest ESP32 Arduino package

Post by stanley »

If you encounter SD card mounting issue, change following line in platformio.ini

Code: Select all

platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
to

Code: Select all

platform = https://github.com/platformio/platform-espressif32.git
steff999
Posts: 1
Joined: Sat Jul 23, 2022 10:33 pm

Re: SD card mounting issue with latest ESP32 Arduino package

Post by steff999 »

Hi,

I still have this problem when building with platform.io

Code: Select all

[ 13178][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
[ 13178][E][sd_diskio.cpp:795] sdcard_mount(): f_mount failed: (3) The physical drive cannot work
[ 13481][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
I already changed the mentioned line in platformio.ini, but this sadly doesn't help.
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: SD card mounting issue with latest ESP32 Arduino package

Post by stanley »

Use the latest ESP32 Arduino package in PlatformIO now like following

Code: Select all

[env:esp32dev]
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
platform_packages = platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.4
board=esp32dev
board_build.f_cpu = 160000000L
framework = arduino
monitor_speed = 115200
Post Reply