Hello. I am trying to set up a basic Lora send example on my nRF52DK NRF52840 development board:https://www.nordicsemi.com/Products/Development-hardware/nrf52840-dk
The issue that I am getting:
[00:00:00.453,094] [1B][0m<inf> sx127x: SX127x version 0x12 found[1B][0m *** Booting Zephyr OS build v3.3.99-ncs1 *** [00:00:01.111,328] [1B][1;31m<err> sx12xx_common: Packet transmission failed![1B][0m [00:00:01.111,816] [1B][1;31m<err> lora_send: LoRa send failed[1B][0m
You can access my example project that I used here: https://github.com/krupis/nrf52_lora
It is basically the same as original zephyr LoRa Send Sample that you can find in zephyr/samples/drivers/lora/send. I have just added a board overly and configured SPI lora device (semtech, sx1276) there.
My board overlay looks as following:
&spi1 { compatible = "nordic,nrf-spi"; status = "okay"; cs-gpios = <&gpio1 6 (GPIO_ACTIVE_LOW)>; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; lora0: sx1276@0 { compatible = "semtech,sx1276"; reg = <0>; reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; dio-gpios = <&gpio1 5 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, <&gpio1 4 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, <&gpio1 3 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; power-amplifier-output = "pa-boost"; spi-max-frequency = <125000>; }; }; / { aliases { lora0 = &lora0; }; };
I have made the following hardware connections between the nRF52DK and the LoRa module:
Additionally, I have connected Salae Logic analyzer to SPI pins to monitor and debug the signal.
https://www.saleae.com/downloads/
I have saved captured SPI waveforms and attached it to wetransfer link. You can download the file and import to Salae to see the full waveforms:
I can see that it is trying to send "helloworld" message:
but after about 0.6seconds, I see the following on the SPI lines:
I have been stuck at this point for a few weeks now without much progress. I would very much appreciate any help! Thanks in advance