dernasherbrezon / sx127x

Library to work with Semtech chips SX1276/SX1277/SX1278/SX1279.
Apache License 2.0
37 stars 7 forks source link

Running on ESP32C6 #13

Closed VitorCMatias closed 7 months ago

VitorCMatias commented 7 months ago

Hello again, I'm attempting to execute code on my ESP32, but I encounter an error. It appears after flashing when I open the serial terminal. image

dernasherbrezon commented 7 months ago

Hi,

It looks like the chip you have is not sx127x. Thus error "SX127X_ERR_INVALID_VERSION".

VitorCMatias commented 7 months ago

@dernasherbrezon The device is an SX1278. It worked on my Arduino nano and other ESP32 board with Arduino framework. I verify the pinout but the error persists Imagem do WhatsApp de 2024-04-15 à(s) 17 49 31_84bc82d1

dernasherbrezon commented 7 months ago

Interesting. The issue might be somewhere in the SPI configuration then. I.e. you're getting some data, but this data either is corrupted or maybe coming from the different chip. I recall you had issue with compilation #12. Is it possible that the chip is actually connected to SPI1_HOST and not SPI2_HOST?

VitorCMatias commented 7 months ago

I tried it now, but got the same error. When you developed the example code which ESP32 you had in mind? I am using a ESP32-C6-DevKitM-1.

dernasherbrezon commented 7 months ago

it was ESP32-PICO-D4 from TTGO Lora32 and Heltec Lora v2.