Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


You are viewing a reply to HTTPD Server - fsdata.c issue  

HTTPD Server - fsdata.c issue

France

Hi,

For posting code you could place them between {CODE()} and {CODE} that will present it like this:
for (f = FS_ROOT; f != NULL; f = f->next) {
    if (!strcmp(name, (const char *)f->name)) { data = (const char *)f->data;
        file->len = f->len;

The violet color is an attempt (usually failed) of the Wysiwig editor to highlight syntax...

Regarding your problem, it looks like fsdata.c is #included by fs.c and also compiled separately by System Workbench for Linux. You can try right-click on fsdata.c then select “Properties” and in “C/C++ Build” and tick the “Exclude resource from build” checkbox.

I’ve already seen other cases where include files were incorrectly given the “.c” extension, leading to such an errors.

Hope this helps,

Bernard (Ac6)