Hello. I am trying to communicate with LoRa module SX1278 :
The pinout of this module is as following:
I have NRF52DK NRF52832 board:
https://www.nordicsemi.com/Products/Development-hardware/nrf52-dk
Just to get things going, I have found this library that uses SX1276 and I decided to use this as a reference for my project:
https://github.com/craigpeacock/Zephyr_LoRaWAN/tree/main/LoRa
I got a few questions immediately regarding how to properly configure the module:
- As you can see form the SX1278 LoRa module pinout, apart from the SPI pins, it has DIO0,DIO1,DIO2,DIO3,DIO4,DIO5. Some LoRa libraries I have found utilize only DIO0 while others require all 6. The example project that I provided link to by craigpeacock utilize only 3 DIO's:
Theres an example of his overlay for the NRF52840:&spi1 { compatible = "nordic,nrf-spim"; status = "okay"; cs-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; lora: sx1276@0 { compatible = "semtech,sx1276"; reg = <0>; reset-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; dio-gpios = <&gpio0 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, <&gpio0 22 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, <&gpio0 17 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; power-amplifier-output = "pa-boost"; spi-max-frequency = <125000>; }; };
. Can someone help me understand why is that? - sx1278 is not oficially supported by Zephyr:
perhaps someone had some experience with this and knows if it is possible to use sx1276 binding and still achieve successfull communication with the sx1278 device? - One of the required properties of the semtech,sx1276 is the power-amplifier-output:
From what I have seen, most people set this property to 'pa-boost'. I didint manage to find any clues about what `pa-boost` means. Could someone provide some information regarding this? - Can I use any GPIO's from the NRF52DK board for the sx1278 DIO's? Can I use GPIO's that are reserved for example I2C0 or I2C1 or even leds?