Closed bradjc closed 9 months ago
If anyone comes across this issue, the line
• Air interface fully compatible with the SX1261/2/8 family and the LoRaWAN standard, defined by the LoRa Alliance
in the LR1110 datasheet does NOT mean that the LR1110 uses the same SPI interface as the SX126x chips. Our issue was we were trying to use the SX126x code which is completely wrong for the LR1110 radio.
I and @YanchengZhou are working on porting TockOS (https://github.com/tock/tock) to the WM1110 dev board. We have the nRF52840 and the temp sensor working. We're stuck trying to communicate with the LR1110 radio.
We have the SPI bus configured, and are trying to send the standby command (
0x80 0x00
) to the radio to verify we are able to communicate with it (we're using RadioLib for the lora driver and that is the first thing that stack does). I can't directly observe the actual SPI lines, but I switched all of the pins (reset, NSS, MOSI, MISO, CLK) to the D1-D5 pins on the header so I could observe them with a logic analyzer. The signals look like I would expect.Reset is pulsed low before the SPI communication:
And the SPI output sends the 0x80 0x00 command:
MISO is just low because there isn't actually anything connected to the SPI pins when I'm doing this test.
When I switch back to the correct pins I don't receive any response from the LR1110 radio. The received SPI bytes are always all zeros or all ones.
I've ensured the jumper for
VDD_LR
is installed.What I'm wondering is: is there any extra setup required on the wm1110 chip or dev board to get the LR1110 to work that I might have missed? Or should the LR1110 just work as a normal SPI peripheral?