Lora-net / sx1302_hal

SX1302/SX1303 Hardware Abstraction Layer and Tools (packet forwarder...)
Other
219 stars 271 forks source link

Using SPI on the SX1302CSS868GW1 reference design #123

Closed emanuelbuholzer closed 2 weeks ago

emanuelbuholzer commented 3 weeks ago

Hi,

Thanks a lot for the great work on the sx1302_hal. I'm currently using the Semtech Corecell reference design (SX1302CSS868GW1) over USB with the Raspberry PI and would like to evaluate the SPI interface.

The User Guide states, that the LoRa gateway supports USB and SPI interfaces to connect to a Raspberry Pi host computer. Thus I expected the reference design to be suited for evaluating the SPI interface. Looking at the schematic below, I see that the SPI lines are not connected to the mPCIe connector, e.g. R316, R317, R318 and R319. 

UIM_PWR

Looking at the PCB in the picture below, these resistors are indeed not connected, but solder pads exist. Please note I only traced MISO to these solder pads, where I could see MISO is connected to the SPI-USB bridge, but not to the connection towards the mPCIe connector.

Screenshot 2024-06-07 at 08 59 46

Does the reference design officially support the SPI interface or should another module be used? If it does, is there any guidance on how to implement it? The solder pads seem quite small; I assume they are intended for metric 0402 resistors.

Thanks a lot for any idea, thoughts or pointers!

mcoracin commented 2 weeks ago

Hello @emanuelbuholzer , as far as I know, the USB version of the reference design is not intended to support direct SPI interface, and would require hardware modification to be converted.