SysTick problem in Stm32 with AzureRTOS

Dominik Jadczak 1 Reputation point
2022-03-29T23:36:12.433+00:00

I am trying to implement an example of sending data from B-L4S5I-IOT01A board sensors to Azure IoT Central via telemetry to Stm32CubeIDE and I almost succeeded but I have a problem with Systick because there are no interrupts from Systick in the Wifi initialization function. I tried to change the Systick to a different timer like TIM6 but that only made things worse. I tried to add Wifi initialization before AzureRTOS initialization and in tx_thread_entry but I also have the same problem. Anyone else have any ideas or would like to debug the code?

Link to the example from which I am copying: https://github.com/azure-rtos/getting-started/tree/master/STMicroelectronics/B-L4S5I-IOT01A

Link to my not working project: https://github.com/jadczakoff/Azure_IoT_Problem_Systick

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
341 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Wen Wang 1 Reputation point Microsoft Employee
    2022-03-30T03:46:00.303+00:00

    Hi,

    it seems that the "HAL_InitTick" is not setup successfully.
    please take the file here as a reference how to redefine "HAL_InitTick" :

    https://github.com/azure-rtos/getting-started/blob/master/STMicroelectronics/B-L4S5I-IOT01A/lib/stm32cubel4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_timebase_tim_template.c


  2. Dominik Jadczak 1 Reputation point
    2022-04-21T15:15:01.057+00:00

    @Wen Wang
    I can't find this file nx_azure_iot_pnp_helpers.h
    Do you have any idea where is it?

    Link: https://learn.microsoft.com/en-us/azure/iot-develop/concepts-developer-guide-device?pivots=programming-language-embedded-c

    0 comments No comments

  3. Bo Chen 596 Reputation points Microsoft Employee
    2022-04-22T03:04:45.017+00:00

    Hi @Dominik Jadczak , looks the user guide you linked is out of date, we will update it. PnP feature is already integrated into IoT Hub, we do not need pnp helper functions, you can refer to following samples for PnP.

    Sample IoT Plug and Play Thermostat
    Sample IoT Plug and Play Temperature Controller

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.