Problem with ESP32 examples

Sysprogs forums Forums VisualGDB Problem with ESP32 examples

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21197
    Dubbie
    Participant

    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, 5 months ago by Dubbie.
    #21201
    support
    Keymaster

    Hi,

    Please try using VisualGDB 5.4 Preview 3 with the new advanced esp-idf project subsystem. It provides a much better development experience for ESP32 projects.

    You can read more about the new ESP-IDF project subsystem in the following tutorial: https://visualgdb.com/tutorials/esp32/esp-idf/

    #21206
    Dubbie
    Participant

    That looks really good – much better.

    Thanks for the help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.