vscode config parameters - fatfs fastseek ?

bipsen
Posts: 1
Joined: Mon Jan 15, 2024 8:56 pm

vscode config parameters - fatfs fastseek ?

Postby bipsen » Mon Jan 15, 2024 9:03 pm

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

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: vscode config parameters - fatfs fastseek ?

Postby ESP_bignacio » Wed Feb 07, 2024 4:47 am

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"]
}

Who is online

Users browsing this forum: No registered users and 46 guests