STM32 LoRa Discovery Kit: First Steps
STMicroelectronics B-L072Z-LRWAN1 STM32 LoRa Discovery Board is a development tool to learn and develop solutions based on LoRa and/or FSK/OOK technologies. This tool features an all-in-one open module solution (by Murata), which is the smallest and cheapest on the market, to address wide area network (LPWAN) wireless modules that support the LoRaWAN long range wireless protocol. The Discovery board comes with the certified embedded software (I-CUBE-LRWAN) to provide the means to set up a complete LoRaWAN node. The I-CUBE-LRWAN is LoRaWAN class A certified and sustains the Class C.
➥ Embedded ultra low power STM32L072CZ series MCUs based on ARM Cortex -M0+ core
➥ 192 Kbytes of flash memory, 20 Kbytes of RAM, 20 Kbytes of EEPROM
➥ 4-channel, 12bit ADC, 2 x DAC, USB 2.0 FS & 157dB maximum link budget
➥ Low RX current of 10mA, 200nA register retention & preamble detection
➥ System requirements are Windows OS (XP, 7, 8, 10), Linux or macOS and USB type-A to Micro-B cable
Hardware block diagramm
Configuring STM32 LoRa Discovery Kit
➥ On Keil, click Project > Open > Open Project..., select the project inside the unzipped I-CUBE-LRWAN
➥ The original demo was originally set to the european frequency 868MHz so we'll need to modify it to work on the 915MHz frequency.
Right-click on the project and select "Options for Target 'mlm32l07x01' ..."
➥ Select the "C / C ++" tab, change "REGION_EU868" to "REGION_US915" and add the define "X_NUCLEO_IKS01A1". Click OK to proceed.
➥ Right-click on "Drivers/BSP/X_NUCLEO_IKS01A2" > Options for Group...
➥ Uncheck "Include in Target Build". Click Ok.
➥ Then right-click on "Drivers/BSP/X_NUCLEO_IKS01A1" > Options for Group...
Check "Include in Target Build". Click Ok.
➥ Open the file "Commissioning.h"
➥ Make the following code changes on line 77:
#define OVER_THE_AIR_ACTIVATION 0
#define STATIC_DEVICE_EUI 1
and line 122:
#define STATIC_DEVICE_ADDRESS 1