cancel
Showing results for 
Search instead for 
Did you mean: 

FATFS+STM32F030R8T6 Errors

USolar
Associate III

Hello Everyone!

I've tried to configure SD Card to STM32F030R8T6 via SPI1.

For reference I took this link: https://controllerstech.com/sd-card-using-spi-in-stm32/

After configuration CubeMX in STM32CubeIDE I've got the start code.

0693W00000HrRa0QAF.pngWithout any other coding I builded the project, just to avoid any possible errors.

When build has finished I've got 5 errors as shown on the picture below.

0693W00000HrRaoQAF.pngIf anyone get experience how to configure correctly the FATFS?

I'll be much appreciate if you share with me.

0693W00000HrRbwQAF.png0693W00000HrRcGQAV.png 

Thanks in advance

3 REPLIES 3

Should be some other errors indicating why it didn't build the sub-components, or indications that it put the compiled objects in some other build directories, and not the source directories.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
USolar
Associate III

Where can I find other errors?

From Console?

USolar
Associate III

Here below the Console Errors during Build:

№/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Drivers/CMSIS/Include" -I../FATFS/Target -I../FATFS/App -I"C:/Electronics/ST/Projects/STM32CubeIDE/SD_Card/FATFS" -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Middlewares/Third_Party/FatFs/src" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/FatFs/ff.d" -MT"Middlewares/FatFs/ff.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Middlewares/FatFs/ff.o"

arm-none-eabi-gcc "C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Middlewares/Third_Party/FatFs/src/ff_gen_drv.c" -mcpu=cortex-m0 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F030x8 -c -I../Core/Inc -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Drivers/STM32F0xx_HAL_Driver/Inc" -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Drivers/STM32F0xx_HAL_Driver/Inc/Legacy" -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Drivers/CMSIS/Device/ST/STM32F0xx/Include" -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Drivers/CMSIS/Include" -I../FATFS/Target -I../FATFS/App -I"C:/Electronics/ST/Projects/STM32CubeIDE/SD_Card/FATFS" -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Middlewares/Third_Party/FatFs/src" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/FatFs/ff_gen_drv.d" -MT"Middlewares/FatFs/ff_gen_drv.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Middlewares/FatFs/ff_gen_drv.o"

arm-none-eabi-gcc "C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Middlewares/Third_Party/FatFs/src/option/syscall.c" -mcpu=cortex-m0 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F030x8 -c -I../Core/Inc -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Drivers/STM32F0xx_HAL_Driver/Inc" -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Drivers/STM32F0xx_HAL_Driver/Inc/Legacy" -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Drivers/CMSIS/Device/ST/STM32F0xx/Include" -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Drivers/CMSIS/Include" -I../FATFS/Target -I../FATFS/App -I"C:/Electronics/ST/Projects/STM32CubeIDE/SD_Card/FATFS" -I"C:/Users/Іван Уранковський/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Middlewares/Third_Party/FatFs/src" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/FatFs/syscall.d" -MT"Middlewares/FatFs/syscall.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Middlewares/FatFs/syscall.o"

arm-none-eabi-gcc: error: C:/Users/???????? ????????????????????????/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Middlewares/Third_Party/FatFs/src/option/syscall.c: Invalid argument

arm-none-eabi-gcc: error: C:/Users/???????? ????????????????????????/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Middlewares/Third_Party/FatFs/src/ff_gen_drv.c: Invalid argument

arm-none-eabi-gcc: fatal error: no input files

compilation terminated.

arm-none-eabi-gcc: fatal error: no input files

compilation terminated.

arm-none-eabi-gcc: error: C:/Users/???????? ????????????????????????/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Middlewares/Third_Party/FatFs/src/ff.c: Invalid argument

arm-none-eabi-gcc: fatal error: no input files

compilation terminated.

make: *** [Middlewares/FatFs/subdir.mk:34: Middlewares/FatFs/syscall.o] Error 1

make: *** Waiting for unfinished jobs....

make: *** [Middlewares/FatFs/subdir.mk:32: Middlewares/FatFs/ff_gen_drv.o] Error 1

arm-none-eabi-gcc: error: C:/Users/???????? ????????????????????????/STM32Cube/Repository/STM32Cube_FW_F0_V1.11.3/Middlewares/Third_Party/FatFs/src/diskio.c: Invalid argument

make: *** [Middlewares/FatFs/subdir.mk:30: Middlewares/FatFs/ff.o] Error 1

arm-none-eabi-gcc: fatal error: no input files

compilation terminated.

make: *** [Middlewares/FatFs/subdir.mk:28: Middlewares/FatFs/diskio.o] Error 1

"make -j4 all" terminated with exit code 2. Build might be incomplete.

18:58:52 Build Failed. 5 errors, 0 warnings. (took 609ms)

As I understand, some files are missing.

But, I don't know which files and where to put them.