Prototype RF driver for STM Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo.
Prototype RF Driver for STM Sub-1 GHz RF Expansion Boards based on the SPSGRF-868 and SPSGRF-915 Modules for STM32 Nucleo
Currently supported boards:
Note, in order to use expansion board X-NUCLEO-IDS01A4
in mbed you need to perform the following HW modifications on the board:
- Unmount resistor
R4
- Mount resistor
R7
Furthermore, on some Nucleo development boards (e.g. the NUCLEO_F429ZI), in order to be able to use Ethernet together with these Sub-1 GHz RF expansion boards, you need to compile this driver with macro SPIRIT1_SPI_MOSI=PB_5
defined, while the development board typically requires some HW modification as e.g. described here!
This driver can be used together with the 6LoWPAN stack (a.k.a. Nanostack).
Diff: source/NanostackRfPhySpirit1.cpp
- Revision:
- 52:053dbc4b570f
- Parent:
- 39:75481c4c6655
- Child:
- 53:b036a3a850e6
--- a/source/NanostackRfPhySpirit1.cpp Wed Feb 22 09:55:13 2017 +0100 +++ b/source/NanostackRfPhySpirit1.cpp Thu Feb 23 13:29:35 2017 +0100 @@ -30,16 +30,7 @@ static uint16_t stored_short_adr; static uint16_t stored_pan_id; -static uint8_t stored_mac_address[8] = { - MBED_CONF_SPIRIT1_MAC_ADDRESS_0, - MBED_CONF_SPIRIT1_MAC_ADDRESS_1, - MBED_CONF_SPIRIT1_MAC_ADDRESS_2, - MBED_CONF_SPIRIT1_MAC_ADDRESS_3, - MBED_CONF_SPIRIT1_MAC_ADDRESS_4, - MBED_CONF_SPIRIT1_MAC_ADDRESS_5, - MBED_CONF_SPIRIT1_MAC_ADDRESS_6, - MBED_CONF_SPIRIT1_MAC_ADDRESS_7 -}; +static uint8_t stored_mac_address[8] = MBED_CONF_SPIRIT1_MAC_ADDRESS; #define RF_SIG_ACK_NEEDED (1<<0) static Thread rf_ack_sender(osPriorityRealtime);