Seeed-Solution / SenseCAP_Indicator_ESP32

SenseCAP Indicator SDK.
https://wiki.seeedstudio.com/SenseCAP_Indicator_How_To_Flash_The_Default_Firmware/#ESP-IDF
Apache License 2.0
32 stars 22 forks source link

Troubleshooting GPIO Compilation Errors with ESP-IDF 5.1 and Resolving Dependencies #17

Closed sebastianarena closed 11 months ago

sebastianarena commented 11 months ago

Hello, I'm trying to compile some examples using the Visual Studio Extension ESP-IDF, set to 5.1. Tried setting it to 4.4.x and I get nowhere. With 5.1 at least it tries to compile.

But it ends with an error, stating some constants are not declared.

Any ideas how to solve this?

~/SenseCAP_Indicator_ESP32/components/bsp/src/boards/sensecap_indicator_board.c:112:25: error: 'GPIO_NUM_45' undeclared here (not in a function); did you mean 'GPIO_NUM_35'?
  112 |     .GPIO_LCD_BL      = GPIO_NUM_45,
      |                         ^~~~~~~~~~~
      |                         GPIO_NUM_35
~/SenseCAP_Indicator_ESP32/components/bsp/src/boards/sensecap_indicator_board.c:166:25: error: 'GPIO_NUM_40' undeclared here (not in a function); did you mean 'GPIO_NUM_30'?
  166 |     .GPIO_I2C_SCL =    (GPIO_NUM_40),
      |                         ^~~~~~~~~~~
      |                         GPIO_NUM_30
~/SenseCAP_Indicator_ESP32/components/bsp/src/boards/sensecap_indicator_board.c:188:29: error: 'GPIO_NUM_47' undeclared here (not in a function); did you mean 'GPIO_NUM_37'?
  188 |     .GPIO_SPI_MISO =       (GPIO_NUM_47),
      |                             ^~~~~~~~~~~
      |                             GPIO_NUM_37
~/SenseCAP_Indicator_ESP32/components/bsp/src/boards/sensecap_indicator_board.c:189:29: error: 'GPIO_NUM_48' undeclared here (not in a function); did you mean 'GPIO_NUM_38'?
  189 |     .GPIO_SPI_MOSI =       (GPIO_NUM_48),
      |                             ^~~~~~~~~~~
      |                             GPIO_NUM_38
~/SenseCAP_Indicator_ESP32/components/bsp/src/boards/sensecap_indicator_board.c:190:29: error: 'GPIO_NUM_41' undeclared here (not in a function); did you mean 'GPIO_NUM_31'?
  190 |     .GPIO_SPI_SCLK =       (GPIO_NUM_41),
      |                             ^~~~~~~~~~~
      |                             GPIO_NUM_31~/SenseCAP_Indicator_ESP32/components/bsp/src/boards/sensecap_indicator_board.c:112:25: error: 'GPIO_NUM_45' undeclared here (not in a function); did you mean 'GPIO_NUM_35'?
  112 |     .GPIO_LCD_BL      = GPIO_NUM_45,
      |                         ^~~~~~~~~~~
      |                         GPIO_NUM_35
~/SenseCAP_Indicator_ESP32/components/bsp/src/boards/sensecap_indicator_board.c:166:25: error: 'GPIO_NUM_40' undeclared here (not in a function); did you mean 'GPIO_NUM_30'?
  166 |     .GPIO_I2C_SCL =    (GPIO_NUM_40),
      |                         ^~~~~~~~~~~
      |                         GPIO_NUM_30
~/SenseCAP_Indicator_ESP32/components/bsp/src/boards/sensecap_indicator_board.c:188:29: error: 'GPIO_NUM_47' undeclared here (not in a function); did you mean 'GPIO_NUM_37'?
  188 |     .GPIO_SPI_MISO =       (GPIO_NUM_47),
      |                             ^~~~~~~~~~~
      |                             GPIO_NUM_37
~/SenseCAP_Indicator_ESP32/components/bsp/src/boards/sensecap_indicator_board.c:189:29: error: 'GPIO_NUM_48' undeclared here (not in a function); did you mean 'GPIO_NUM_38'?
  189 |     .GPIO_SPI_MOSI =       (GPIO_NUM_48),
      |                             ^~~~~~~~~~~
      |                             GPIO_NUM_38
~/SenseCAP_Indicator_ESP32/components/bsp/src/boards/sensecap_indicator_board.c:190:29: error: 'GPIO_NUM_41' undeclared here (not in a function); did you mean 'GPIO_NUM_31'?
  190 |     .GPIO_SPI_SCLK =       (GPIO_NUM_41),
      |                             ^~~~~~~~~~~
      |                             GPIO_NUM_31
sebastianarena commented 11 months ago

Please ignore I figured how to do it Setting the target correctly to esp32s3

The esp_coexist.h header is no longer present in 5.1 Commenting it allowed the code to compile

Now to figure how to flash it :)

Thanks