ArmDeveloperEcosystem/lorawan-library-for-pico

REG_LR_VERSION Error

Closed this issue · 1 comments

Hello everyone,

I am actually trying to connect my device to Chirpstack and TTN via ABP. To test this, I am using the hello_abp example sketch.
I get an error when the following code snippet gets executed:

// check version register
if (SX1276Read(REG_LR_VERSION) != 0x12) {
return -1;
}

In my case, the content of the register is 0x00 and an error gets returned. Is this piece of code necessary? Or can I just work my way around it by cutting it out? I already researched what the job of this register could be but I didn't find anything helpful.

Got it working. Initialized the wrong SPI instance.