SPI half duplex migration issues from ESP-IDF v4 to v5
Posted: Sun Jul 28, 2024 4:53 pm
I am currently trying to port code from ESP-IDF v4 to v5 (from Arduino-ESP32 v2 to v3), and I am stuck with its SPI part which speaks to the CMT2300a using half duplex SPI.
My ESP32-C6 is crashing with the error
pointing to the following api call
The code can be found here.
I am compiling for the esp32-c6-devkitm-1 and my patched code can be found here.
Has someone an idea what went wrong here, since this code worked on previous versions?
Edit: Corrected mentioned ESP-IDF version.
My ESP32-C6 is crashing with the error
Code: Select all
E (2072) spi_master: check_trans_valid(793): SPI half duplex mode is not supported when both MOSI and MISO phases are enabled.
Code: Select all
file: "lib/CMT2300a/cmt_spi3.c" line 101
func: cmt_spi3_read
expression: spi_device_polling_transmit(spi_reg, &t)
I am compiling for the esp32-c6-devkitm-1 and my patched code can be found here.
Has someone an idea what went wrong here, since this code worked on previous versions?
Edit: Corrected mentioned ESP-IDF version.