Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting LoRa with ESP32 fail #683

Open
phutai9101 opened this issue Mar 5, 2024 · 2 comments
Open

Starting LoRa with ESP32 fail #683

phutai9101 opened this issue Mar 5, 2024 · 2 comments

Comments

@phutai9101
Copy link

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

@qiweimao
Copy link

qiweimao commented Jun 3, 2024

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.

@cagroh
Copy link

cagroh commented Oct 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants