Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 9 months ago.
SX1276 will run on SPI1 but not SPI2 - Nucleo-F303RE
I am using the SX1276 library from semtech for a set of inAIR4 RF modules. Both boards being used are NUCLEO-F303RE.
I am able to get it working with the following pin-mapping using the PingPong Demo application.
SX1276( events, D11, D12, D13, D10, A0, D2, D3, D4, D5, A3, D9 ), AntSwitch( A4 ), Fake ( D8 )
When I try to use SPI2 instead of SPI1, since I need SPI1 for another module I use the following pin-mapping
SX1276( events, PB_15, PB_14, PB_13, D10, A0, D2, D3, D4, D5, A3, D9 ), AntSwitch( A4 ), Fake( D8 )
As you can see I have only changed the MISO, MOSI and SCLK mappings here. I have rewired the modules respectively for this change also. The ping seems to work, but I get RF timeout

I figured it out. It was due to the RF_FREQUENCY not being set to the proper 433MHz for the InAir4 module.
posted by Peter Barrett 02 Mar 2019