ArmDeveloperEcosystem / lorawan-library-for-pico

Enable LoRaWAN communications on your Raspberry Pi Pico or any RP2040 based board. 📡
BSD 3-Clause "New" or "Revised" License
146 stars 49 forks source link

REG_LR_VERSION Error #37

Closed SlazyHW closed 1 year ago

SlazyHW commented 1 year ago

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.

SlazyHW commented 1 year ago

Got it working. Initialized the wrong SPI instance.