The LoRa Developer Forum is now in read-only mode and new content will not be added. If you require technical support related to LoRa, please contact our experts here. For sales enquiries, please contact us here.

FORUM

HAL implementation for Espressif (SPI) IDF SDK?

Hi,

I have been working on an SX126x driver for AtomVM (an Erlang abstract machine) on the ESP32 platform.

I have been able to use the SemTech SX126x Driver as a reference for constructing commands, but I am having difficulty mapping the hardware abstraction layer (HAL) specified in this library onto the IDF SDK SPI layer.

Does anyone know of an implementation of HAL for the IDF SDK SPI layer, specifically the mapping of the command and data fields coming through the HAL to the fields of the spi_transaction_t struct in the IDF SDK?