-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to compile with SDK 1.2.0 and 1.3.0 #25
Comments
SDK 1.4.0 (as far as I can tell) does not work either. |
Current errors (Using NMake on Windows 11):
|
Changing ( add_library(FatFs_SPI INTERFACE)
target_sources(FatFs_SPI INTERFACE
${CMAKE_CURRENT_LIST_DIR}/ff14a/source/ffsystem.c
${CMAKE_CURRENT_LIST_DIR}/ff14a/source/ffunicode.c
${CMAKE_CURRENT_LIST_DIR}/ff14a/source/ff.c
${CMAKE_CURRENT_LIST_DIR}/sd_driver/sd_spi.c
${CMAKE_CURRENT_LIST_DIR}/sd_driver/demo_logging.c
# ${CMAKE_CURRENT_LIST_DIR}/sd_driver/hw_config.c
${CMAKE_CURRENT_LIST_DIR}/sd_driver/spi.c
${CMAKE_CURRENT_LIST_DIR}/sd_driver/sd_card.c
${CMAKE_CURRENT_LIST_DIR}/sd_driver/crc.c
${CMAKE_CURRENT_LIST_DIR}/src/glue.c
${CMAKE_CURRENT_LIST_DIR}/src/f_util.c
${CMAKE_CURRENT_LIST_DIR}/src/ff_stdio.c
${CMAKE_CURRENT_LIST_DIR}/src/my_debug.c
${CMAKE_CURRENT_LIST_DIR}/src/rtc.c
)
target_include_directories(FatFs_SPI INTERFACE
ff14a/source
sd_driver
include
)
target_link_libraries(FatFs_SPI INTERFACE
hardware_spi
hardware_dma
hardware_rtc
pico_stdlib
) to add_library(FatFs_SPI INTERFACE
${CMAKE_CURRENT_LIST_DIR}/ff14a/source/ffsystem.c
${CMAKE_CURRENT_LIST_DIR}/ff14a/source/ffunicode.c
${CMAKE_CURRENT_LIST_DIR}/ff14a/source/ff.c
${CMAKE_CURRENT_LIST_DIR}/sd_driver/sd_spi.c
${CMAKE_CURRENT_LIST_DIR}/sd_driver/demo_logging.c
# ${CMAKE_CURRENT_LIST_DIR}/sd_driver/hw_config.c
${CMAKE_CURRENT_LIST_DIR}/sd_driver/spi.c
${CMAKE_CURRENT_LIST_DIR}/sd_driver/sd_card.c
${CMAKE_CURRENT_LIST_DIR}/sd_driver/crc.c
${CMAKE_CURRENT_LIST_DIR}/src/glue.c
${CMAKE_CURRENT_LIST_DIR}/src/f_util.c
${CMAKE_CURRENT_LIST_DIR}/src/ff_stdio.c
${CMAKE_CURRENT_LIST_DIR}/src/my_debug.c
${CMAKE_CURRENT_LIST_DIR}/src/rtc.c
)
target_include_directories(FatFs_SPI INTERFACE
ff14a/source
sd_driver
include
)
target_link_libraries(FatFs_SPI INTERFACE
hardware_spi
hardware_dma
hardware_rtc
pico_stdlib
) fails with the following:
|
reverting change to makefile & adding a hw_config.c in the |
This is where I get stumped... certainly seems like |
Did not update to pico-sdk 1.4.0 properly. Have not tested properly, but that gets it to build. |
Worked for me, thanks |
I probably should have documented this somewhere, but Pull Request #12 Dynamic configuration (in response to Issue #11 Configurable GPIO pins) moved the I have just pulled SDK version 1.4.0 and no-OS-FatFS-SD-SPI-RPi-Pico/example builds cleanly with that. |
Just a note to document this problem and a workaround:
The project fails to compile with pico-sdk 1.2.0. "mutex_is_initialized" is mispelled in pico/mutex.h as "mutex_is_initialzed".
The 1.3.0 sdk fixed this error, but there is a bigger regression which prevents compilation. That is fixed in the develop-branch for the next release.
I decided to stick with 1.2.0 and fix the spelling in pico/mutex.h. After that, I could successfully build the examples.
The text was updated successfully, but these errors were encountered: