Seeed-Studio / Seeed_Wio_WM1110_Dev_Board

Applications on WM1110 Development Board
5 stars 4 forks source link

Help with porting software to the WM1110 Dev board #2

Closed bradjc closed 9 months ago

bradjc commented 10 months ago

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:

image

And the SPI output sends the 0x80 0x00 command:

image

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?

bradjc commented 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.