You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a ESP32-C3 module.
After setting this chip as a target:
idf.py set-target esp32c3
I'm running into a compilation error:
/Users/paul/smoothoperator/externals/smooth/lib/smooth/core/filesystem/MMCSDCard.cpp: In member function 'virtual bool smooth::core::filesystem::MMCSDCard::init(const smooth::core::filesystem::SDCardMount&, bool, int)':
/Users/paul/smoothoperator/externals/smooth/lib/smooth/core/filesystem/MMCSDCard.cpp:44:36: error: 'SDMMC_HOST_DEFAULT' was not declared in this scope
sdmmc_host = (sdmmc_host_t)SDMMC_HOST_DEFAULT();
^~~~~~~~~~~~~~~~~~
/Users/paul/smoothoperator/externals/smooth/lib/smooth/core/filesystem/MMCSDCard.cpp:44:36: note: suggested alternative: 'SDSPI_HOST_DEFAULT'
sdmmc_host = (sdmmc_host_t)SDMMC_HOST_DEFAULT();
^~~~~~~~~~~~~~~~~~
SDSPI_HOST_DEFAULT
to the top of the smooth/lib/smooth/include/smooth/core/filesystem/MMCSDCard.h fixes the error. But that's a dirty hack.
Expected behavior
Build system should be aware of chip specific Smooth configurations and either provide documentation on how to disable unsupported libraries or use error-throwing mocks when underlying hardware/firmware aren't available.
Similar problems may probably arise with other compile target / library combinations.
The text was updated successfully, but these errors were encountered:
paulftw
changed the title
SDCard.cpp fails to compile for esp32-c3
MMCSDCard.cpp fails to compile for esp32-c3
Jun 18, 2022
I'm no longer actively using Smooth (my project is completed) so I'm not actively keeping up with the development of the ESP32/IDF at this point. I do however accept pull requests to address issues. As such, feel free to propose a proper solution to the issue at hand and we'll discuss it.
paulftw
added a commit
to paulftw/Smooth
that referenced
this issue
Jun 18, 2022
I have a ESP32-C3 module.
After setting this chip as a target:
I'm running into a compilation error:
The culprit appears to be
SOC_SDMMC_HOST_SUPPORTED
- this symbol is not defined in the C3 soc_caps.h.As a result
sdmmc_host.h
does nothing and breaksMMCSDCard.cpp
.Workaround
Adding
to the top of the
smooth/lib/smooth/include/smooth/core/filesystem/MMCSDCard.h
fixes the error. But that's a dirty hack.Expected behavior
Build system should be aware of chip specific Smooth configurations and either provide documentation on how to disable unsupported libraries or use error-throwing mocks when underlying hardware/firmware aren't available.
Similar problems may probably arise with other compile target / library combinations.
The text was updated successfully, but these errors were encountered: