arduino-LoRa icon indicating copy to clipboard operation
arduino-LoRa copied to clipboard

Starting LoRa with ESP32 fail

Open phutai9101 opened this issue 1 year ago • 2 comments

hi everybody, I am doing a project about esp32 with module lora sx1278. I can't start the lora module and get an error. Help meeee! thanks for reading. 5244b080109d475e597a12e51ee524c7-0 image

phutai9101 avatar Mar 05 '24 03:03 phutai9101

while(true) is causing a inifnite loop, which results in your program crashing. Get rid of that first. Then, check if you can specify MOSI, MISO, SCK.

qiweimao avatar Jun 03 '24 06:06 qiweimao

This usually happens by some misconnection to the default SPI MISO, MOSI and SCLK pins and the default values depend on the type of ESP32 you are using. You can set your own SPI pins by calling spi.begin(LoRa_SPI_CLK, LoRa_SPI_MISO, LoRa_SPI_MOSI, LoRa_SPI_SS); where each pin points to your configuration. Note this must be called BEFORE you call LoRa.begin(). Cesar

cagroh avatar Oct 17 '24 14:10 cagroh