problem in nitialization of Lora sx1278 on custom pins on official stm32core #1025
anandspathak
started this conversation in
General
Replies: 2 comments
-
If you want to use SPI2 for your SX1278 module, you need to tell RadioLib that this is the SPI you want to use. Otherwise, it will use the default SPI. See SPI setup wiki page and the troubleshooting guide. PS: Also, you seem to be using incorrect tags to denote source code in your posts, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Sir,
have been using Lora sx1278 with esp32 with no issues,
Now have shifted to STM32 official core with following pin mapping and i couldnt initialize lora with below settings,
------- SPI2 Pins----
MISO---PB6,
MOSI---PB7
SCLK---PB8
SS---PB9
and constructor for lora is below:
NSS DIO0 RESET DIO1
SX1278 radio = new Module(PB9, PB3, PA15, PB4);
error : [SX1278] Initializing ... failed, code -2
below is my code:
Can you please suggest me where i am wrong,
thanks for your time,
best Regards,
Anand Pathak,
INDIA
Beta Was this translation helpful? Give feedback.
All reactions