Closed semir-t closed 3 years ago
Please post the entire sketch - especially the part where you're creating the module instances.
-707 is ERR_SPI_CMD_FAILED
, which can be either returned by the module if the SPI communication is working correctly, or returned by the library if the SPI is only reading 0x00 or 0xFF bytes. From what you've described, I'd say the second option is more likely, but it's impossible to tell without the whole sketch.
You might also want to check the debug output.
The problem was in the SPI driver not the library. After driver was fixed it is working now. Thanks.
Hardware setup We are using two SC126x based modules. One for Tx and second one for Rx. If we initialize modules separately they work fine. But when we try the above code for the second one we get error status -707. Both module are sharing the SPI peripheral with separately controlled CS line.
Additional info (please complete):