I am using chibios203 with (chibi studio gcc 9.0) to build (RT-STM32F103-OLIMEX_STM32_P103-FATFS) from Demo
but I have this problem
Code: Select all
14:55:20 **** Build of configuration Default for project RT-STM32F103-OLIMEX_STM32_P103-FATFS ****
make -j8 all
Compiler Options
arm-none-eabi-gcc -c -mcpu=cortex-m3 -mthumb -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -ffunction-sections -fdata-sections -fno-common -flto -Wall -Wextra -Wundef -Wstrict-prototypes -Wa,-alms=./build/lst/ -DCORTEX_USE_FPU=FALSE -MD -MP -MF ./.dep/build.d -I. -I./cfg -I../../../os/license -I../../../os/common/portability/GCC -I../../../os/common/startup/ARMCMx/compilers/GCC -I../../../os/common/startup/ARMCMx/devices/STM32F1xx -I../../../os/common/ext/ARM/CMSIS/Core/Include -I../../../os/common/ext/ST/STM32F1xx -I../../../os/hal/include -I../../../os/hal/ports/common/ARMCMx -I../../../os/hal/ports/STM32/STM32F1xx -I../../../os/hal/ports/STM32/LLD/CANv1 -I../../../os/hal/ports/STM32/LLD/DACv1 -I../../../os/hal/ports/STM32/LLD/DMAv1 -I../../../os/hal/ports/STM32/LLD/GPIOv1 -I../../../os/hal/ports/STM32/LLD/I2Cv1 -I../../../os/hal/ports/STM32/LLD/RTCv1 -I../../../os/hal/ports/STM32/LLD/SDIOv1 -I../../../os/hal/ports/STM32/LLD/SPIv1 -I../../../os/hal/ports/STM32/LLD/TIMv1 -I../../../os/hal/ports/STM32/LLD/USARTv1 -I../../../os/hal/ports/STM32/LLD/USBv1 -I../../../os/hal/ports/STM32/LLD/xWDGv1 -I../../../os/hal/boards/OLIMEX_STM32_P103 -I../../../os/hal/osal/rt-nil -I../../../os/rt/include -I../../../os/oslib/include -I../../../os/common/ports/ARMCMx -I../../../os/common/ports/ARMCMx/compilers/GCC -I../../../os/hal/lib/streams -I../../../os/various/shell -I../../../ext/fatfs/src -I../../../test/lib -I../../../test/rt/source/test -I../../../test/oslib/source/test main.c -o main.o
Compiling crt0_v7m.S
Compiling vectors.S
Compiling chcoreasm_v7m.S
Compiling crt1.c
Compiling hal.c
Compiling hal_st.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_flash.c
Compiling hal_mmcsd.c
Compiling hal_mmc_spi.c
Compiling hal_pal.c
Compiling hal_serial.c
Compiling hal_spi.c
Compiling nvic.c
Compiling hal_lld.c
Compiling stm32_isr.c
Compiling hal_efl_lld.c
Compiling stm32_dma.c
Compiling hal_pal_lld.c
Compiling hal_spi_lld.c
Compiling hal_serial_lld.c
Compiling hal_st_lld.c
Compiling board.c
Compiling osal.c
Compiling chsys.c
Compiling chdebug.c
Compiling chtrace.c
Compiling chvt.c
Compiling chschd.c
Compiling chtm.c
Compiling chthreads.c
Compiling chregistry.c
Compiling chsem.c
Compiling chmtx.c
Compiling chcond.c
Compiling chevents.c
Compiling chmsg.c
Compiling chdynamic.c
Compiling chmboxes.c
Compiling chmemcore.c
Compiling chmemheaps.c
Compiling chmempools.c
Compiling chpipes.c
Compiling chobjcaches.c
Compiling chdelegates.c
Compiling chfactory.c
Compiling chcore.c
Compiling chcore_v7m.c
Compiling chprintf.c
Compiling memstreams.c
Compiling nullstreams.c
Compiling shell.c
Compiling shell_cmd.c
Compiling fatfs_diskio.c
Compiling fatfs_syscall.c
In file included from ../../../os/various/fatfs_bindings/fatfs_diskio.c:10:
../../../ext/fatfs/src/ff.h:32:2: error: #error Wrong configuration file (ffconf.h).
32 | #error Wrong configuration file (ffconf.h).
| ^~~~~
In file included from ../../../os/various/fatfs_bindings/fatfs_diskio.c:10:
Compiling ff.c
../../../ext/fatfs/src/ff.h:244:16: error: 'FF_SFN_BUF' undeclared here (not in a function)
244 | TCHAR altname[FF_SFN_BUF + 1];/* Altenative file name */
| ^~~~~~~~~~
../../../ext/fatfs/src/ff.h:245:14: error: 'FF_LFN_BUF' undeclared here (not in a function)
245 | TCHAR fname[FF_LFN_BUF + 1]; /* Primary file name */
| ^~~~~~~~~~
Compiling ffunicode.c
Compiling ch_test.c
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:189: build/obj/fatfs_diskio.o] Error 1
make: *** Waiting for unfinished jobs....
Compiling rt_test_root.c
In file included from ../../../ext/fatfs/src/ffunicode.c:26:
../../../ext/fatfs/src/ff.h:32:2: error: #error Wrong configuration file (ffconf.h).
32 | #error Wrong configuration file (ffconf.h).
| ^~~~~
In file included from ../../../os/various/fatfs_bindings/fatfs_syscall.c:23:
../../../ext/fatfs/src/ff.h:32:2: error: #error Wrong configuration file (ffconf.h).
32 | #error Wrong configuration file (ffconf.h).
| ^~~~~
In file included from ../../../ext/fatfs/src/ff.c:22:
../../../ext/fatfs/src/ff.h:32:2: error: #error Wrong configuration file (ffconf.h).
32 | #error Wrong configuration file (ffconf.h).
| ^~~~~
In file included from ../../../os/various/fatfs_bindings/fatfs_syscall.c:23:
../../../ext/fatfs/src/ff.h:244:16: error: 'FF_SFN_BUF' undeclared here (not in a function)
244 | TCHAR altname[FF_SFN_BUF + 1];/* Altenative file name */
| ^~~~~~~~~~
In file included from ../../../ext/fatfs/src/ff.c:22:
../../../ext/fatfs/src/ff.h:244:16: error: 'FF_SFN_BUF' undeclared here (not in a function)
244 | TCHAR altname[FF_SFN_BUF + 1];/* Altenative file name */
| ^~~~~~~~~~
In file included from ../../../ext/fatfs/src/ffunicode.c:26:
../../../ext/fatfs/src/ff.h:244:16: error: 'FF_SFN_BUF' undeclared here (not in a function)
244 | TCHAR altname[FF_SFN_BUF + 1];/* Altenative file name */
| ^~~~~~~~~~
../../../ext/fatfs/src/ff.h:245:14: error: 'FF_LFN_BUF' undeclared here (not in a function)
245 | TCHAR fname[FF_LFN_BUF + 1]; /* Primary file name */
| ^~~~~~~~~~
../../../ext/fatfs/src/ff.h:245:14: error: 'FF_LFN_BUF' undeclared here (not in a function)
245 | TCHAR fname[FF_LFN_BUF + 1]; /* Primary file name */
| ^~~~~~~~~~
../../../ext/fatfs/src/ff.h:245:14: error: 'FF_LFN_BUF' undeclared here (not in a function)
245 | TCHAR fname[FF_LFN_BUF + 1]; /* Primary file name */
| ^~~~~~~~~~
../../../ext/fatfs/src/ff.c:473:5: warning: "FF_LFN_BUF" is not defined, evaluates to 0 [-Wundef]
473 | #if FF_LFN_BUF < FF_SFN_BUF || FF_SFN_BUF < 12
| ^~~~~~~~~~
../../../ext/fatfs/src/ff.c:473:18: warning: "FF_SFN_BUF" is not defined, evaluates to 0 [-Wundef]
473 | #if FF_LFN_BUF < FF_SFN_BUF || FF_SFN_BUF < 12
| ^~~~~~~~~~
../../../ext/fatfs/src/ff.c:473:32: warning: "FF_SFN_BUF" is not defined, evaluates to 0 [-Wundef]
473 | #if FF_LFN_BUF < FF_SFN_BUF || FF_SFN_BUF < 12
| ^~~~~~~~~~
../../../ext/fatfs/src/ff.c:474:2: error: #error Wrong setting of FF_LFN_BUF or FF_SFN_BUF
474 | #error Wrong setting of FF_LFN_BUF or FF_SFN_BUF
| ^~~~~
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:190: build/obj/fatfs_syscall.o] Error 1
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:189: build/obj/ffunicode.o] Error 1
../../../ext/fatfs/src/ff.c: In function 'get_fat':
../../../ext/fatfs/src/ff.c:1186:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
1186 | if ((obj->objsize != 0 && obj->sclust != 0) || obj->stat == 0) { /* Object except root dir must have valid data length */
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../../../ext/fatfs/src/ff.c:1210:3: note: here
1210 | default:
| ^~~~~~~
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:189: build/obj/ff.o] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
14:55:29 Build Failed. 18 errors, 4 warnings. (took 8s.560ms)