cancel
Showing results for 
Search instead for 
Did you mean: 

Hi in 2020 I bought P-NUCLEO-LRWAN2 and now I started programming. In none of the examples provided in the expansion pack, I can't get Nucleo-L073RZ + I-nucleo-lrwan1 sg-sm-42 to work as an end node. Any solution?

ELeit.3
Associate II
 
9 REPLIES 9
JCOUP
Associate III

​Hello,   If I well understood you problem you do not find the right project to run on a Nucleo-L073RZ.

The last expansion package published in 2021 (V2.1) on st.com provides the AT_Master project.

\Projects\NUCLEO-L073RZ\Applications\LoRaWAN\LoRaWAN_AT_Master.

Regards

Andrew Neil
Evangelist III

You need to give full details of what, exactly, you've done and what, exactly, is "not working", and what debugging you've done to find the problem.

As @JCOUP​ says, you need the AT_Master project from the I-Cube-LRWAN package:

https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/i-cube-lrwan.html

v2.1.0 is the latest version.

In this example, the USI module on the I-NUCLEO-LRWAN1 board is programmed as an AT-Command modem, and the STM32 on the NUCLEO-L073RZ board is acting as the "Host" (or "Master") for that modem - that's why you need the "AT-Master" loaded on the Nucleo.

Note also that the serial connection to the ST-Link virtual COM port on the Nucleo base board is disconnected - because that is used for the AT Command connection to the modem.

ELeit.3
Associate II

Hi @Andrew Neil​ and @JCOUP​ ! Thanks for reply! I try the solutions above but only show in Teraterm Otaa

DeviceEUI and others all blank.I try with V2.1.0

I give up and tried to use I-NUCLEO-LRWAN standalone with tutorial found on

https://github.com/USIWP1Module/USI_I-NUCLEO-LRWAN1/tree/master/I-CUBE-LRWAN_patchs/I-CUBE-LRWAN%201.2.2

Its works! With package V1.2.2, but when enable the sensors and only temperature and humidity, there was FLASH overflowed 9680 bytes :(

0693W00000NqQX2QAN.pngThe size optimization is enable and debug disable. Any susgestions? I noticed

the package v2.1.0 dos not have the solution. of this board.

The USI board was generally panned several years ago, the LRWAN-DISCO using the Murata module was much better received having a newer SX1276 radio, and a larger 192KB FLASH L072 part, and a more open software stack. Many of us, including the FAE's, just reprogrammed the USI parts, having patched the LRWAN code ourselves. The patching mainly relates to the pining of the SX1272, and the RF side RX/TX switching gate. If v2.1.0 is too bulky to fit, you might need to make alternate choices.

For Cortex-M0(+) parts there is the free version of Keil, which can likely build the firmware much more tightly, including link-time-optimization (LTO)

https://www2.keil.com/stmicroelectronics-stm32/mdk

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

@ELeit.3​  So you've fixed the problem of getting the LoRaWAN to work as an End Node?

If so, please mark the solution (see below).

Getting the sensors working is a separate issue...

I would second the recommendation from @Community member​ that you move to the B-L072Z-LRWAN1 board instead. 👍

0693W000008y9fZQAQ.png@ELeit.3

@Andrew Neil​ @Community member​ Thank you to reply, I found another way to solve the issues. I used RAK3172 based STM32WL5CC6 with the code bellow.

https://github.com/danak6jq/RAK3172

@Community member​ Could you lend me the improved code of LRWAN1? Cause I need to use the sensors on the shield.

The code for  B-L072Z-LRWAN1 is all included in the I-Cube-LRWAN package.

The I-nucleo-lrwan1 / sg-sm-42 I worked on perhaps 5+ years ago, on the older 1.0.x or 1.1.x forks.

The patches were materially similar to the ones subsequently posted by USI. @Alec BATH​ was also using these parts, and I think I published several posts to the forum related to pins used internally.

https://community.st.com/s/question/0D50X00009XkgY5SAJ/inucleolrwan1

https://community.st.com/s/question/0D50X00009XkgxiSAB/usi-wmsgsm42-point-to-point-communiation

http://edworks.co.kr/wp-content/uploads/2020/12/WM-SG-SM-42_Product-SPEC_Rev05_20180322.pdf

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..