Closed steven52880 closed 3 years ago
From the debug output, it looks like it's failing at the frequency calibration stage. That usually suggest incorrect crystal type, TCXO is selected by default.
From the schematic I found for Ra-01SC it looks like it uses XTAL instead. Could you try to specify XTAL usage instead of TCXO, i.e.:
begin(434.0, 125.0, 9, 7, SX126X_SYNC_WORD_PRIVATE, 10, 8, 0);
instead of the default
begin(434.0, 125.0, 9, 7, SX126X_SYNC_WORD_PRIVATE, 10, 8, 1.6);
:) Thanks for your quickly reply. I replaced my code.
// initialize SX1262 with default settings
Serial.print(F("[SX1262] Initializing ... "));
int state = radio.begin(434.0, 125.0, 9, 7, SX126X_SYNC_WORD_PRIVATE, 10, 8, 0);
But it crashd. It says
ISR not in IRAM!
User exception (panic/abort/assert)
I read another issue and add ICACHE_RAM_ATTR
before void setFlag(void)
and it seems to work well now.
I will try something later.
void setFlag(void)
is an interrupt service routine, so on ESP32 and ESP8266 it has to executed from RAM, that's why the attribute is needed.
I'm going to close this now since it seems the original issue was resolved.
Hi. I tried my lora module but it can't work. This is my first time using a Lora mudule, so I don't know much about it. The program seems stopped at "radio.begin()". I have read the status codes page on wiki but can not find resolution.
Additional info:
Sketch that is causing the module fail I am using the example"SX126x_PingPong" and change the pin setting.
Hardware setup![cc195a36ab695584ea03155a6b38249](https://user-images.githubusercontent.com/31466039/131208115-52fd84a7-341d-4a79-a757-b8cbf2a3d1c2.jpg)
Debug mode output