cancel
Showing results for 
Search instead for 
Did you mean: 

I-CUBE-LRWAN support for STM32U5 + SX1262

JSGraaf
Associate III

I was wondering if anyone had managed to get the LoRaWAN End-Node example running on other MCUs than the STM32L series. I've been trying to get it to run on the STM32U5A9 combined with an SX1262, but I haven't had any luck. I'm trying to integrate this into a clean project structure, unlike the one from the example applications where there are files like sys_app.c that manually configure the SPI bus instead of using CubeMX generated code.

I have manged to succesfully port the SX1262 driver code from Semtech itself (https://github.com/Lora-net/sx126x_driver), however I don't see how to integrate this with the LoRaWAN example.

If anyone has succeeded or has any tips, any help would be appreciated!

2 REPLIES 2
STTwo-32
ST Employee

Hello @JSGraaf 

The I-Cube-LRWAN does implement LoRaWAN on the STM32L0, STM32L1 and STM32L4. So, it is not dedicated for the STM32U5. For this series, you need to work on your own implementation (configure a communication peripheral to communicate with your LoRa module and configure it to do the communication).

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Andrew Neil
Super User

@JSGraaf wrote:

 a clean project structure, unlike the one from the example applications where there are files like sys_app.c that manually configure the SPI bus instead of using CubeMX generated code.!


I'm not sure how that makes it any more or less "clean" ?

 


@JSGraaf wrote:

If anyone has ... any tips, any help would be appreciated!


I would suggest that you get it working with one of the supported STM32Lx parts to start with.

Then work on porting from that to your choice of processor.

 

If you want to go from "manual" config to cube-generated, do that first on the  STM32Lx part, then port the result

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.