Search found 2 matches

by dill_bot
Tue May 20, 2025 4:51 am
Forum: ESP-IDF
Topic: ESP-IDF SPI not working but equivilant code working with arduino IDE code
Replies: 1
Views: 75

Re: ESP-IDF SPI not working but equivilant code working with arduino IDE code

Solved the the issue
Needed to add the following flags to the bus config to get SPI working on desired IO pins

Code: Select all

.flags = SPICOMMON_BUSFLAG_MASTER | SPICOMMON_BUSFLAG_GPIO_PINS | SPICOMMON_BUSFLAG_SCLK | SPICOMMON_BUSFLAG_MOSI | SPICOMMON_BUSFLAG_MISO
by dill_bot
Mon May 19, 2025 6:19 am
Forum: ESP-IDF
Topic: ESP-IDF SPI not working but equivilant code working with arduino IDE code
Replies: 1
Views: 75

ESP-IDF SPI not working but equivilant code working with arduino IDE code

I have a ESP32-S3-DevkitC-1 and am trying to get spi running in master mode with spi pins assigned to the following GPIOs

#define PIN_NUM_MISO GPIO_NUM_9
#define PIN_NUM_MOSI GPIO_NUM_12
#define PIN_NUM_SCLK GPIO_NUM_11
#define PIN_NUM_nSCS GPIO_NUM_10

I have got this running with a simple arduino ...

Go to advanced search