Page 1 of 1

vscode config parameters - fatfs fastseek ?

Posted: Mon Jan 15, 2024 9:03 pm
by bipsen
Hi

Looking at https://github.com/michael-betz/fast_se ... me-ov-file - and trying to figure out how to enable the FATFS_USE_FASTSEEK in platformio/vscode - using platform = espressif32@6.1.0 and framework=arduino

In pltformio.ini I have

Code: Select all

build_flags =
	-D CORE_DEBUG_LEVEL=5
	-D CONFIG_ARDUHAL_LOG_COLORS=1
	-D CONFIG_FATFS_USE_FASTSEEK=y
	-D CONFIG_FATFS_FAST_SEEK_BUFFER_SIZE=256
But commenting out the last 2 lines does not change anything performance-wise ...

How do I enable the fastseek function - so I also can see better performance on the output of the test code - which currently reports dt of approx 14300 us ...

Regards
Brian

Re: vscode config parameters - fatfs fastseek ?

Posted: Wed Feb 07, 2024 4:47 am
by ESP_bignacio
You can try passing them with the idf.cmakeCompilerArgs configuration setting in your project .vscode/settings.json

Something like:

Code: Select all

{
	"idf.cmakeCompilerArgs": ["-G", "Ninja","-DPYTHON_DEPS_CHECKED=1","-DESP_PLATFORM=1","-DCORE_DEBUG_LEVEL=5",
	"-DCONFIG_ARDUHAL_LOG_COLORS=1","-DCONFIG_FATFS_USE_FASTSEEK=y","-DCONFIG_FATFS_FAST_SEEK_BUFFER_SIZE=256"]
}