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: libs/Contiki_STM32_Library/spirit1-config.h
- Revision:
- 30:9c6dcfc47619
- Parent:
- 18:d6f789f6f4c9
--- a/libs/Contiki_STM32_Library/spirit1-config.h Thu Nov 17 08:26:41 2016 +0100 +++ b/libs/Contiki_STM32_Library/spirit1-config.h Fri Nov 18 13:35:27 2016 +0100 @@ -46,9 +46,10 @@ * Freescale - which suffers from a not yet analyzed (HW) bug in delivering/receiving * further interrupts by/from Spirit after having reached the RX FIFO threshold and * elaborated the corresponding 'IRQ_RX_FIFO_ALMOST_FULL' interrupt. + * Furthermore, enable this macro if you want to use CSMA/CA. * NOTE: this enables just a workaround!!! */ -#define RX_FIFO_THR_WA +#define RX_FIFO_THR_AO_CSMA_WA /** * The MAX_PACKET_LEN is an arbitrary value used to define the two array @@ -56,7 +57,7 @@ * The SPIRIT1 supports with its packet handler a length of 65,535 bytes, * and in direct mode (without packet handler) there is no limit of data. */ -#ifdef RX_FIFO_THR_WA +#ifdef RX_FIFO_THR_AO_CSMA_WA #define MAX_PACKET_LEN (SPIRIT_MAX_FIFO_LEN-1) #else #define MAX_PACKET_LEN (255) // betzw - WAS: SPIRIT_MAX_FIFO_LEN, but LEN_WIDTH is set to 7 so the variable payload length is from 0 to 255 bytes
X-NUCLEO-IDS01A4 Sub-1GHz RF Expansion Board