-
Notifications
You must be signed in to change notification settings - Fork 409
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
STM32F103C8 - int state = lora.begin (); - program stops #146
Comments
Could you post the output with debug mode enabled? Uncomment these two lines in BuildOpt.h, then post the output from Serial port: Lines 213 to 214 in a969517
|
This is what I got after entering debug mode:
I do not have a Radio connected to the board, |
I was able to replicate the issue on Nucleo L452RE-P. The problem was in Seems to be fixed now, I'll release this as patch 3.6.2. Thanks for reporting! |
I have progress! The second thing. I have an RFM95 radio module with an RFM96 chip. The module operates at a frequency of 868 MHz. If I choose RFM95 lora = new Module ..... get : if I choose RFM96 I have error -12 incorrect frequency (I set frequency 868.00) I will check communication tomorrow.
|
SUPER :) |
The issue only occured when attempting to terminate the module interface when the module was not found, so it doesn't have any effect when the module is found. Next:
Sooo ... you have an RFM96 radio then. RadioLib attempts to verify this by reading the register SX127X_REG_VERSION. Yours is set to 0x12, which means it's indeed RFM96. This chip is limited to 410 - 525 MHz range according to the datasheet. |
I used the example attached to the Radiolib library. The problem occurs regardless of which core I choose. There is no error during compilation, but the program stops on the line: int state = lora.begin ();
My next command is digitalWrite (PC13, LOW); and it's never done. I disconnected my radio module. Same behavior.
I made another test: Arduino Pro Mini (AVR) + RadioLib + sample sketch. I did not connect the RFM95 radio. The program returned error -2 no radio. It should be. Test passed.
This is the sketch from the examples a bit modified by me. The last thing I see via serial port is: [SX1278] Initializing GO !!
Additional info (please complete):
The text was updated successfully, but these errors were encountered: