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).

Files at this revision

API Documentation at this revision

Comitter:
Wolfgang Betz
Date:
Mon May 15 14:59:13 2017 +0200
Parent:
57:8cc871dc6cac
Child:
59:5dbfc9faf1c5
Commit message:
Put some more `#ifdef HEAVY_TRACING` exclusions

Changed in this revision

source/NanostackRfPhySpirit1.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/source/NanostackRfPhySpirit1.cpp	Fri Apr 28 14:11:53 2017 +0200
+++ b/source/NanostackRfPhySpirit1.cpp	Mon May 15 14:59:13 2017 +0200
@@ -91,8 +91,10 @@
 
     /*Check if transmitter is busy*/
     if(rf_device->is_receiving()) { /* betzw - WAS: (rf_device->channel_clear() != 0)), do NOT use this but rather study and enable automatic CCA */
+#ifdef HEAVY_TRACING
 	tr_debug("%s (%d)", __func__, __LINE__);
-
+#endif
+	
 	/* Release Lock */
 	rf_if_unlock();
 
@@ -632,7 +634,9 @@
 	    /*Send the packet*/
 	    rf_device->send((uint8_t*)buffer, 3);
 
+#ifdef HEAVY_TRACING
 	    tr_debug("%s (%d), hdr=%x, nr=%x", __func__, __LINE__, buffer[0], ptr[0]);
+#endif
 	}
 
 	if(signals & RF_SIG_CB_TX_DONE) {