Look here:
Big STM32 boards topic - End Devices (Nodes) - The Things Network
and here
LMIC FOR STM32CubeMX in 15 minutes - End Devices (Nodes) / LMiC - The Things Network