/EasyLoRaNode_LowPower

Low-Power Easy LoRa Node with STM32L0 and LoRa SX1278

Primary LanguageCOtherNOASSERTION

Easy LoRa Node - Low Power (With STM32L072CZT6, LoRa and battery)

Low-Power Easy LoRa Node with STM32L0 and LoRa SX1278

STM32DUINO liraries

Referenced B-L072Z-LRWAN1: It is actually STM32L072CZT6

1. Hardware

1.1 Pin locations

EasyLoRaLowPowerNode-Pinout

1.2 Pin mapping for STM32L072CZT6 (used by LSN50)

Original at https://github.com/dragino/Lora/blob/master/LoRaST/v1.0/LoRa%20ST%20v1.0_Sch.pdf stm32L0

2. Connect to hardware

2.1 Use STLink v2 to upload code

STLink v2 USB

Driver is at https://www.st.com/en/development-tools/st-link-v2.html#tools-software stlink

Pin mapping

  • LSN50 -> STLink v2
  • PA14 -> SWCLK
  • PA13 -> SWDIO. NOTE: NEXT TO PA13 is PB14. WE NEED PA14!!!
  • VCC -> 3.3+
  • GND -> GND

IMG_5387

Switch of LSN50 is ISP to upload code. It's recommended to remove UART TTL USB before uploading code via STLink

STLink v2 will show up in USB Device, not Ports (COM & LPT) image

2.2 Use UART to debug

uart

  • LSN50 -> CP1202 USB TTL
  • GND -> GND
  • PA2 -> RX
  • PA3 -> TX

3. Programming guides

3.1 Installation of stm32duino to Arduino IDE

Additional Boards Manager URLs: https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json lsn50-installation

3.2 Add STM32 variant

Outdated steps

3.3 Compilation of Arduino code using Arduino IDE on STM32 board

Port COM4 in the picture is for UART. This is for debugging purpose. lsn50-compilation

The port is blank when we use STLink to upload code and UART USB is not plugged in image

4. Reference