Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failing on ESP32-C3 - No SPI3_HOST #119

Open
falo2k opened this issue Jul 2, 2024 · 0 comments
Open

Build Failing on ESP32-C3 - No SPI3_HOST #119

falo2k opened this issue Jul 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@falo2k
Copy link

falo2k commented Jul 2, 2024

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
@falo2k falo2k added the bug Something isn't working label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants