1 year, 11 months ago.

Support for the STM B_L072Z_LRWAN1 LoRa board and RFM95 modules

A new repository is available which supports the STM B_L072Z_LRWAN1 Lora board, as well HopeRF RFM95, Murata CMWX1ZZABZ-078 modules and the SX1276MB1MAS/SX1276MB1LAS boards. A good start is to import the sample program from:

The new 1276GenericLib should work with any mbed board, more details can be found in the README file of the 1276GenericLib lib. The goal is to support mbed, Arduino and Linux with the SX1276Generic LoRa driver.

Feedback and development support is very welcome.

Comment on this question

4 Answers

1 year, 7 months ago.

Thanks Helmut. I'd been using the RFM95's from HopeRF using Arduino's, but really wanted to use nRF51822's on mbed.

1 year, 11 months ago.

Thanks Helmut! I will try it on the new B_L072Z_LRWAN1 board.

Yep this is really cool, maybe you can check out if I did the clock initialisation correct in main.cpp, it works now for me, but I don't know if the clocks are all correct.

For Plug & Play testing of the B_L072Z_LRWAN1, you need two boards to get see the Lora communication. Just compile, download and check the USB serial LoRa PingPong messages at (230400 baud).

The main part of the development is in the SX1276Generic driver where I spend a lot of time.

posted by Helmut Tschemernjak 12 May 2017

I saw that the board my not be defined and it shows GENERIC_PLACEHOLDER, use the board target: Nucleo-L073RZ

posted by Helmut Tschemernjak 19 May 2017
1 year, 11 months ago.

Thanks for this, it's just what I was about to start working on!

I'm completely new to mbed, and tried building online for the B_L072Z_LRWAN1 board but am unable to build anything.

Error is Error: Target "GENERIC_PLACEHOLDER" is not recognized

Can you give me any indication of how to complete the build?


Very easy you just click on the URL: This imports a new project with all libraries needed, click on compile, done. P.S: Can you update your profile with a complete name, I don't like to support anonymous people.

posted by Helmut Tschemernjak 12 May 2017

You have this error because this board is not yet available on The SDK is ready on GitHub and has been merged in mbed master branch. So, it should arrive soon on the mbed IDE.

Helmut, The clock setting in your code looks ok. But when this board will be available you will not need anymore the HSI clock configuration in your main file as it is already done in the system_stm32l0xx.c file. You could also use the correct target name DISCO_L072CZ_LRWAN1 instead of B_L072Z_LRWAN1_LORA.

I have tested also your example with two boards. It worked fine but after few minutes the TX and RX went in TimeOut. I don't know if it has been done on purpose ? Resetting one device and the Ping-Pong started again.

posted by bco stm 15 May 2017
1 year, 9 months ago.

Hi Helmut,

Great repo! Have you tried it with the Murata CMWX1ZZABZ-078? I am not sure if a binary file complied for the B_L072Z_LRWAN1 (which uses a STM32L072) will also work for the CMWX1ZZABZ-078 (which uses a STM32L082), so if you have tested it already, I would be glad to know. Thanks,


Der Armel, thanks for the feedback. Can you please update your profile (with proper name, maybe city?), I don't like to talk to anonymous contacts. Yes the CMWX1ZZABZ-078 chip is the same as the one used on the STM B_L072Z_LRWAN1 board. You can set the platform “DISCO-L072CZ-LRWLAN1” in mbed and it works. Regards Helmut

posted by Helmut Tschemernjak 30 Jun 2017

To post an answer, please log in.