Skip to content

Build Failing on ESP32-C3 - No SPI3_HOST #119

@falo2k

Description

@falo2k

Describe the bug
The build fails for the ESP32-C3 due to SPI3_HOST not being defined. Error hits in the macros at the top of esp32_spi.cpp where it tries to #define VSPI_HOST SPI3_HOST

To Reproduce
Steps to reproduce the behavior:
Build a project against ESP32C3 Dev Module

esp32_spi.cpp: In member function void EspSpi::begin()
 
esp32_spi.cpp: 37:25: error: 'SPI3_HOST' was not declared in this scope; did you mean 'SPI2_HOST'?
   37 |     #define VSPI_HOST   SPI3_HOST
   |                         ^~~~~~~~~
esp32_spi.cpp:103: note  in expansion of macro VSPI_HOST
   HSPI_HOST, &buscfg, 0); \\ 0 -no dma
   |                                  ^~~~~~~~~
esp32_spi.cpp: In member function void EspSpi::end()
 
esp32_spi.cpp: 37:25: error: 'SPI3_HOST' was not declared in this scope; did you mean 'SPI2_HOST'?
   37 |     #define VSPI_HOST   SPI3_HOST
   |                         ^~~~~~~~~
esp32_spi.cpp:120: note  in expansion of macro VSPI_HOST
   HSPI_HOST)
   |                            ^~~~~~~~~
esp32_spi.cpp: In member function void EspSpi::start()
 
esp32_spi.cpp: 37:25: error: 'SPI3_HOST' was not declared in this scope; did you mean 'SPI2_HOST'?
   37 |     #define VSPI_HOST   SPI3_HOST
   |                         ^~~~~~~~~
esp32_spi.cpp:146: note  in expansion of macro VSPI_HOST
   HSPI_HOST, &devcfg, &m_spi)
   |                                      ^~~~~~~~~
Error compiling libraries

Expected behavior
Compilation without errors

Please complete the following information:

  • library version: 1.1.5
  • LCD display type: SSD1306_128x32_I2C
  • OS [e.g. linux, windows]: windows
  • Platform [e.g. Atmega328p, esp32, etc.]: esp32-c3
  • IDE if using some: Visual Studio + Visual Micro / Arduino 2 IDE

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions