I am having trouble with the ESP32 samples.
I have started a new project. Everything default. Choose ESP32 toolchain. I chose the HTTP server example, although the hello world doesn’t work either.
When the project is set up, I open the main cpp file.
I get an intellisense error: “Could not find stddef.h”
I tried to point it at the stddef.h in C:\SysGCC\esp32\lib\gcc\xtensa-esp32-elf\5.2.0\include. I’m not sure if that was wise, but it made the error go away.
If I try to build the project, it fails with the following error:
1>C:/SysGCC/esp32/esp32-bsp/esp-idf/components/vfs/vfs_uart.c: In function 'uart_read':
1>C:\SysGCC\esp32\esp32-bsp\esp-idf\components\vfs\vfs_uart.c(90,36): error : initializer element is not constant
1> static int buffered_char = NONE;
1> ^
1>make: *** [Makefile:1222: Debug/vfs_uart.o] Error 1
1>-------------------------------------------------------------
Lastly intellisense isn’t happy with the xTaskCreate function call. It’s complaining”use of undeclared identifier INT_MAX”
These errors all look very much like I have the wrong stddef.h
This is my first ever ESP32 project. Up till now I have been very happily using VisualGDB for STM32 projects.
Any ideas? Thanks for any help you can offer.
Regards,
R
-
This topic was modified 6 years, 6 months ago by Dubbie.