Hi,
I’ve hard time with SX1262 reset line from nrf52840 :
#define PIN_LORA_RESET 38 // LORA RESET
I’ve the exact same code as SX126x-Arduino library (copied from) and when I use the following initialization :
pinMode(_hwConfig.PIN_LORA_RESET, OUTPUT);
digitalWrite(_hwConfig.PIN_LORA_RESET, HIGH);
I can’t access anymore to the SX1262.
If I remove pinMode
, I can read and get the correct value from REG_LR_SYNCWORD for exemple.
The difference is that this code is embedded in another one, but this code do not use this pin. I’ve tried the HAL provided with this other code, and get the same behavior (the code is almost identical).
Do I missed something ?
Is there any initialization in the Arduino bootloader that I missed ?
BTW, where can I find the RAK463x Arduino bootloader code ?
Thanks,
BR.