manuelbl / ttn-esp32

The Things Network device library for ESP32 (ESP-IDF) and SX127x based devices
MIT License
301 stars 64 forks source link

TTGO Lora OLED v1 // ttn_hal: LMIC failed and stopped radio.c:1067 #59

Closed gullufurkan closed 1 year ago

gullufurkan commented 1 year ago

Hi, I am using TTGO Lora OLED v1 board and tried your hello_world.cpp example. I configured my SPI pins as below.

// Pins and other resources
#define TTN_SPI_HOST      VSPI_HOST //SPI3_HOST
#define TTN_SPI_DMA_CHAN  SPI_DMA_DISABLED
#define TTN_PIN_SPI_SCLK  5
#define TTN_PIN_SPI_MOSI  27
#define TTN_PIN_SPI_MISO  19
#define TTN_PIN_NSS       18
#define TTN_PIN_RXTX      TTN_NOT_CONNECTED
#define TTN_PIN_RST       14
#define TTN_PIN_DIO0      26
#define TTN_PIN_DIO1      35

These are the logs

␛[0;32mI (887) ttn_hal: SPI initialized␛[0m
␛[0;32mI (897) ttn_hal: Timer initialized␛[0m
␛[0;32mI (937) ttn: event EV_JOINING␛[0m
␛[0;32mI (8887) ttn: event EV_TXSTART␛[0m
␛[0;32mI (8887) ttn: event EV_RXSTART␛[0m
␛[0;31mE (8887) ttn_hal: LMIC failed and stopped: components\ttn-esp32\src\lmic\radio.c:1067

I tested the board before with this tutorial. What am I missing? Thanks in advance!