Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1 Content
This document gives a quick introduction on how to start App development with the
Miromico FMLR LoRa™ and LoRaWAN™ modules and sensor devices. A setup using the
free Eclipse based System Workbench for STM32 is given from chapter 3. To update the
firmware using a given hex file refer to chapter 2.
More information about FMLR modules and sensor products can be found on the Miromico
Website.
2.1 Flashing
Connect the module’s serial port 1 (USART1_TX, USART1_RX and GND) to a USB-Serial
cable.
Reset the module while pulling BOOT0 to 3V, to bring it to bootloader mode.
Start FLASHER-STM32, which is named Demonstrator GUI by STMicroelectronics, for
unknown reasons and connect to the module. You should only change the COM port.
When asked choose Target → STM32L1_Cat2-128K.
When asked to choose the file to download to the device, make sure to leave erase
necessary pages ticked, because our controller don’t support the global erase command.
This leads to crash of the FLASHER-STM32 tool.
12.05.2017 V1.07 1
3 Development Setup
3.1 Hardware
Illustration 1: Some animals from the happy Zoo of FMLR High Performance Modules and
Sensors
Due to the tiny size of the FMLR of the FMLR LoRa modules there is no on board connector
for debugging or firmware update.
Instead there are test points on the back of the module to program the module in
production.
For development and debugging purposes, the module has to be contacted either on the
SWD interface (debugging and firmware update) or on the USART1 which is supported by
the on chip boot loader (firmware update only).
2 V1.07 12.05.2017
3.1.2 Breakout Board
To easily connect the module first development, we offer the FMLR break out board. This
board gives access to all module pins in a 2.54 mm pitch (100mil) to put it in a bread board
or a similar setup. The breakout board also offers a 10 pin Tag-Connect (TC1050-IDC-NL)
port to connect a debugger or an UART interface.
There is also a micor USB connector which connects to the USB port of the MCU and can
provide system power using an LDO converter on the break out board.
RESET and BOOT0 buttons can be used to trigger the on-chip bootloader to update the
firmware using USART1 of the controller.
12.05.2017 V1.07 3
3.2 Software
4 V1.07 12.05.2017
3.2.2.1 SEGGER J-Link Tools
If you want to use the SEGGER J-Link instead the J-Link Tools have to be installed. Details
can be found on How to install the SEGGER J-Link?
• Download and install J-Link software & documentation pack for Windows
• Install GNU ARM Eclipse Plug-ins
◦ If you receive “fatal alert: handshake_failure”:
▪ Install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction
Policy Files
▪ Read the README.txt file and replace two JAR files in the JRE folder
/lib/security
▪ Try to install the plug-ins again
▪ Further information can be found here
This will clone the repository into your current working directory. In SW4STM32 navigate to
File > Import…
Set the root directory to Projects\Multi\Applications\LoRa\MultiSensorHub within your
working directory and select the projectes to import (e.g. FMLR-MultiSensorHub).
Click “Finish” to import the project into your workspace. You are now ready to build and run
your application on the target hardware.
12.05.2017 V1.07 5