I bought this device out of curiosity because I like the compact design.
Now I realized that all examples based on STM32CubeIDE. I managed to get the example by heltec and upload with STMCubeProgrammer and ST-LINK V2. heltec info lora node 151 → TTN
You have to figure out the pin connections between the STM32L151 and SX1276 (RFM95W) on the Heltec node and change them in the example code accordingly.
Regards, Leo.
An L051 is quite different from an L151 where things like Arduino BSP’s are concerned.
There’s a certain irony here that the weakness of much of the Heltec stuff is only supporting Arduino and not more precise/traditional development methods, but the asker actually wants that, and seems to have the one board that doesn’t.