boards/seeed/lora_e5_mini/doc/index.rst
.. zephyr:board:: lora_e5_mini
Overview
LoRa-E5 mini is a compacted-sized development board suitable for the rapid testing and building of small-sized LoRa device, exposing all capabilities of Seeed Studio LoRa-E5 STM32WLE5JC module.
Hardware
The boards' LoRa-E5 Module packages a STM32WLE5JC SOC, a 32MHz TCXO, and a 32.768kHz crystal oscillator in a 28-pin SMD package. This STM32WLEJC SOC is powered by ARM Cortex-M4 core and integrates Semtech SX126X LoRa IP to support (G)FSK, BPSK, (G)MSK, and LoRa modulations.
LoRa-E5 STM32WLE5JC Module with STM32WLE5JC multiprotocol LPWAN single-core 32-bit microcontroller (Arm® Cortex®-M4 at 48 MHz) in 28-pin SMD package featuring:
1 user LED
2 serial communication (RX/TX) LEDs
1 boot/user and 1 reset push-button
32.768 kHz LSE crystal oscillator
32 MHz HSE oscillator
Board connectors:
Delivered with SMA antenna (per default IPEX connector is disconnected)
Flexible power-supply options: USB Type C or 3-5V battery soldered to +/- pins
Suitable for rapid prototyping of end nodes based on LoRaWAN, Sigfox, wM-Bus, and many other proprietary protocols
All GPIOs led out from the LoRa-E5 STM32WLE5JC module
4x M2 mounting holes
More information about the board can be found at the LoRa-E5 mini Wiki_.
More information about LoRa-E5 STM32WLE5JC Module can be found here:
LoRa-E5 STM32WLE5JC Module Wiki_LoRa-E5 STM32WLE5JC Module datasheet_STM32WLE5JC datasheet_STM32WLE5JC reference manual_STM32WLE5JC on www.st.com_.. zephyr:board-supported-hw::
LoRa-E5 mini has 4 GPIO controllers. These controllers are responsible for pin muxing, input/output, pull-up, etc.
.. image:: img/lora_e5_mini_pinout.jpg :align: center :alt: LoRa-E5 mini Pinout
LoRa-E5 mini board System Clock could be driven by the low-power internal (MSI), High-speed internal (HSI) or High-speed external (HSE) oscillator, as well as main PLL clock. By default System clock is driven by the MSI clock at 48MHz.
Programming and Debugging
.. zephyr:board-supported-runners::
Applications for the lora_e5_mini board configuration can be built the
usual way (see :ref:build_an_application).
In the factory the module is flashed with an DFU bootloader, an AT command
firmware, and the read protection level 1 is enabled.
So before you can program a Zephyr application to the module for the first time
you have to reset the read protection to level 0.
In case you use an st-link debugger you can use the STM32CubeProgrammer GUI to
set the RDP option byte to AA,
or use the STM32_Programmer_CLI passing the --readunprotect command
to perform this read protection regression.
The RDP level 1 to RDP level 0 regression will erase the factory programmed AT
firmware, from which seeed studio has neither released the source code nor a binary.
Also, note that on the module the BOOT0 pin of the SOC is not accessible,
so the system bootloader will only be executed if configured in the option bytes.
The LoRa-E5 mini does not include a on-board debug probe.
But the module can be debugged by connecting an external debug probe to the
2.54mm header.
Depending on the external probe used, openocd, the stm32cubeprogrammer,
pyocd, blackmagic, or jlink runner can be used to flash the board.
Additional notes:
.. code-block:: console
$ pyocd pack --update $ pyocd pack --install stm32wl
Connect the LoRa-E5 to your host computer using the external debug probe.
Then build and flash an application. Here is an example for the
:zephyr:code-sample:hello_world application.
Run a serial host program to connect with your board:
Per default the console on usart1 is available on the USB Type C connector
via the built-in USB to UART converter.
.. code-block:: console
$ picocom --baud 115200 /dev/ttyACM0
Then build and flash the application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: lora_e5_mini :goals: build flash
You can debug an application in the usual way. Here is an example for the
:zephyr:code-sample:blinky application.
.. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: lora_e5_mini :maybe-skip-config: :goals: debug
.. _LoRa-E5 mini Wiki: https://wiki.seeedstudio.com/LoRa_E5_mini/
.. _LoRa-E5 STM32WLE5JC Module Wiki: https://wiki.seeedstudio.com/LoRa-E5_STM32WLE5JC_Module/
.. _LoRa-E5 STM32WLE5JC Module datasheet: https://files.seeedstudio.com/products/317990687/res/LoRa-E5%20module%20datasheet_V1.0.pdf
.. _STM32WLE5JC on www.st.com: https://www.st.com/en/microcontrollers-microprocessors/stm32wle5jc.html
.. _STM32WLE5JC datasheet: https://www.st.com/resource/en/datasheet/stm32wle5jc.pdf
.. _STM32WLE5JC reference manual: https://www.st.com/resource/en/reference_manual/dm00530369-stm32wlex-advanced-armbased-32bit-mcus-with-subghz-radio-solution-stmicroelectronics.pdf