Skip to main content
Associate II
October 7, 2024
Solved

Interfacing external sensors with I-CUBE-LRWAN End Node STM32L476RG based Library

  • October 7, 2024
  • 1 reply
  • 1489 views

I've interfaced my RFM95 LoRa module with the STM32L476RG Nucleo board, using the I-CUBE-LRWAN library to send uplink messages with dummy data and temperature values. However, I can't locate the .ioc file in the library to configure the pinouts for my external sensors. Could you help me find the .ioc file in this library, and let me know which file to modify to add sensor values and customize the payload?

Best answer by Andrew Neil

@Zeeshan123 wrote:

I can't locate the .ioc file in the library to configure the pinouts for my external sensors. Could you help me find the .ioc file in this library, and let me know which file to modify to add sensor values and customize the payload?


Probably, it just doesn't have one - not all examples do have .ioc files:

https://community.st.com/t5/stm32-mcus-boards-and-hardware/demo-boards-with-micro-sd-slot-that-uses-standard-spi-instead-of/m-p/713834/highlight/true#M21051

 

Is there any evidence of any other CubeMX-generated code in the project?

1 reply

Andrew Neil
Andrew NeilBest answer
Super User
October 7, 2024

@Zeeshan123 wrote:

I can't locate the .ioc file in the library to configure the pinouts for my external sensors. Could you help me find the .ioc file in this library, and let me know which file to modify to add sensor values and customize the payload?


Probably, it just doesn't have one - not all examples do have .ioc files:

https://community.st.com/t5/stm32-mcus-boards-and-hardware/demo-boards-with-micro-sd-slot-that-uses-standard-spi-instead-of/m-p/713834/highlight/true#M21051

 

Is there any evidence of any other CubeMX-generated code in the project?

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.
Associate II
October 7, 2024

So, does that mean I can't use that library to interface external real sensors using this library as my end node ?

Andrew Neil
Super User
October 7, 2024

Not at all.

It just means that you'll have to configure the pins, etc, manually.

Or maybe use a separate Cube-MX project to generate configurations, and then manually merge them into the I-CUBE-LRWAN project.

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.