I'm having problems using f_printf function with nRF52 SDK v16
undefined reference to `f_printf'
Makefile is the same of FATFS example and already includes:
$(SDK_ROOT)/external/fatfs/port/diskio_blkdev.c \ $(SDK_ROOT)/external/fatfs/src/ff.c \
I'm having problems using f_printf function with nRF52 SDK v16
undefined reference to `f_printf'
Makefile is the same of FATFS example and already includes:
$(SDK_ROOT)/external/fatfs/port/diskio_blkdev.c \ $(SDK_ROOT)/external/fatfs/src/ff.c \
Hello,
What function is it that use f_printf? Does it also happen in any of the examples that you find in the SDK? As far as I can tell there are no examples using it. Perhaps you have some differences in sdk_config.h that makes your project trying to use it?
BR,
Edvin
f_printf is a function on FatFS library and is declared on ff.h and ffc.
Yes,
#if _USE_STRFUNC
(line 5737 in ff.c)
_USE_STRFUNC is defined to 0 on line ff_conf.h.
What is _USE_STRFUNC in your project?
The reason I said that it wasn't used is that _USE_STRFUNC is 0 in the projects in our SDK, so f_printf isn't used anywhere, as far as I can tell, but it may be used in an example I am not aware of.
In addition, the fatfs example has the implementation of f_printf() (if _USE_STRFUNC is set to 1), but there are no calls to it.
I used f_write with sprintf instead.