finds.dev← search

// the find

SMotlaq/LoRa

★ 324 · C · MIT · updated Jan 2024

Ra-02 LoRa module (SX1278) library for STM32 (ARM processors) using HAL drivers ⚡

A bare-metal C library for driving the SX1278 (Ra-02) LoRa module on STM32 via HAL SPI. Two files — LoRa.c and LoRa.h — drop into a CubeIDE/Keil project and give you TX, continuous RX, sleep mode, and RSSI. Aimed at hobbyists and students doing point-to-point LoRa over 433 MHz.

Tested against six real STM32 targets (F1, F0, F4, L4 families), which is more than most similar repos bother to document. The init status codes borrowing HTTP semantics (200/404/503) are oddly readable and make it easy to spot wiring problems vs. config problems at a glance. Sleep mode and over-current protection are exposed, which matters for battery-powered nodes that most toy libraries ignore. The API surface is minimal enough that you can read the entire thing in under an hour.

Only continuous RX mode is supported — single/on-demand receive is missing, which matters if you're building anything that needs to conserve power between known receive windows. No interrupt-driven TX completion: LoRa_transmit blocks on a timeout polling loop, so you'll stall your main loop on every send. The repo ships a full Keil MDK project with compiled .axf/.hex/object files checked in, which is noise that makes the actual two-file library harder to find. No LoRaWAN stack, no packet framing — it's pure physical layer, so if you need anything above raw byte blasting you're on your own.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →