Search found 4 matches
- Fri Nov 17, 2023 7:21 am
- Forum: ESP-IDF
- Topic: ESP-32 S3 Cannot initialize multiple spi devices (host_id not initialized)
- Replies: 7
- Views: 2165
Re: ESP-32 S3 Cannot initialize multiple spi devices (host_id not initialized)
You mean by declaring a spiclass and storing it somewhere ? I effectively didn't try that but that wouldn't be compatible with the way of using the lgfx lib right ?
- Thu Nov 16, 2023 9:27 am
- Forum: ESP-IDF
- Topic: ESP-32 S3 Cannot initialize multiple spi devices (host_id not initialized)
- Replies: 7
- Views: 2165
Re: ESP-32 S3 Cannot initialize multiple spi devices (host_id not initialized)
I"m unsure about a second initialization, when i uncomment the spi_bus initialize with this code: void NFC_SPI_Init(void) { esp_err_t ret; spi_bus_config_t spiBusConfig; spiBusConfig.miso_io_num = NFC_SPI_MISO_PIN; spiBusConfig.mosi_io_num = NFC_SPI_MOSI_PIN; spiBusConfig.sclk_io_num = NFC_SPI_SCLK_...
- Wed Nov 15, 2023 10:52 am
- Forum: ESP-IDF
- Topic: ESP-32 S3 Cannot initialize multiple spi devices (host_id not initialized)
- Replies: 7
- Views: 2165
Re: ESP-32 S3 Cannot initialize multiple spi devices (host_id not initialized)
Because it's initialized in the lgfx config and i'm unsure if i should initialize it twice, should I ?
- Tue Nov 14, 2023 5:39 pm
- Forum: ESP-IDF
- Topic: ESP-32 S3 Cannot initialize multiple spi devices (host_id not initialized)
- Replies: 7
- Views: 2165
ESP-32 S3 Cannot initialize multiple spi devices (host_id not initialized)
Hi, When i'm trying to initialize multiple devices, i get the error: spi_master: spi_master_init_driver(200): host_id not initialized ESP_ERROR_CHECK failed: esp_err_t 0x103 (ESP_ERR_INVALID_STATE) at 0x4037d06c file: "src/board/board_spi.cpp" line 35 func: void NFC_SPI_Init() expression: ret Unsure...