Skip to main content
DJadc.1
Associate II
Mar 25, 2022 9:33 AM UTC
Question

Trouble to implement Azure example for board B-L4S5I-IOT01A to Stm32CubeIDE

Hi,

Recently I have been trying to implement an example from ST where data is sent telemetry to Azure. The problem is that Stm32CubeIDE did not generate Netxduo / addons / azure_iot. I am trying to manually add this folder but there are a lot of errors regarding includes and in the example I do not see these folders and files, although in some files they have #include "nx_azure_iot_json_reader.h" which is part of azure-sdk-for-c. If you have any ideas where you need to select somewhere in Stm32CubeIDE to generate this file, please give me advice.

Link to example: https://github.com/azure-rtos/getting-started/tree/master/STMicroelectronics/B-L4S5I-IOT01A

Stm32CubeIDE version: 1.8

This topic has been closed for replies.

19 replies

DJadc.1
DJadc.1Author
Associate II
Mar 29, 2022 10:04 PM UTC

@Haithem Rahmani​ 

i copied files from this project: https://github.com/azure-rtos/getting-started/tree/master/STMicroelectronics/B-L4S5I-IOT01A so i trust that the project is without errors.

The problem seems to be related with SysTick.

DJadc.1
DJadc.1Author
Associate II
Mar 30, 2022 8:03 AM UTC
Haithem Rahmani
ST Employee
Mar 30, 2022 1:01 PM UTC

First of all could you check that the WiFi module is correctly working, try the example below.

https://github.com/STMicroelectronics/STM32CubeL4/tree/master/Projects/B-L4S5I-IOT01A/Applications/WiFi

DJadc.1
DJadc.1Author
Associate II
Mar 30, 2022 8:54 PM UTC

@Haithem Rahmani​ 

Okey so i fix it and now its working but i have problem with add extra charts with datas from different sensors because a little bit don't understand code. If you have some time to explain couple of things how to add extra chart, i will be thankful

link to my project: https://github.com/jadczakoff/Azure_IoT_Project

Haithem Rahmani
ST Employee
Mar 30, 2022 8:58 PM UTC

well! I don't have any idea on this as this is Azure cloud related.

official Microsoft documentation may help.

https://docs.microsoft.com/en-us/azure/iot-hub/

https://docs.microsoft.com/en-us/azure/iot-dps/tutorial-set-up-cloud

umtkyck
Associate II
Sep 16, 2022 8:07 PM UTC

I create a AZURE RTOS project for stm32h723 nucleo board with latest IDE, H7 and AZURE sdk. I couldnt get the "Netxduo/addons/azure_iot" to my custom code from select component section of tool, I guess there is a bug on STM32CUBEIDE.

Is there any workaround for that?

Umit

DJadc.1
DJadc.1Author
Associate II
Sep 20, 2022 9:15 AM UTC

@umtkyck​

Hello,

I had the same issue and I fixed that by adding manually this package. I had a lot of work but I recommend you download one of these package, choose a project to Stm32CubeIDE then find the folder where is azure_iot and finally copy it to your project and add a path to the linker. I believe that this file (azure_iot) is a general file for any microcontroller and you can copy that peacefully and configure on your own. I hope that it will help you

0693W00000SvmcxQAB.png0693W00000SvmdRQAR.png