Hello David Kenko,
Thanks for reaching out on this forum.
What was the Sample you have followed, sorry the hyperlink might be missing from your post?
Did you try using the below samples?
Azure IoT samples using Azure IoT middleware for FreeRTOS
You can find more information about the steps in the tutorial "Connect an STMicroelectronics B-L475E to Azure IoT Central quickstart" at the following link: [https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/iot-develop/quickstart-devkit-stm-b-l475e-freertos.md](https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/iot-develop/quickstart-devkit-stm-b-l475e-freertos.md)
Please note that the tutorial uses the STMicroelectronics B-L475E device, but you can use the same steps to make an ADU with OTA update for your STM32F407 device with the Azure IoT middleware for FreeRTOS samples.
document_link:
https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/iot-develop/quickstart-devkit-stm-b-l475e-freertos.md<sup>[0][1][2]</sup>
We can try below steps to get started with ADU using the Azure IoT middleware for FreeRTOS samples:
1.Download the Azure IoT middleware for FreeRTOS samples.
- Build the sample code for your STM32F407 device.
- Flash the image to your device.
- Connect your device to Azure IoT.
- Use the Azure portal to create Azure resources, connect your device securely to Azure, view telemetry, and send messages.
- Import an update using the Azure portal.
- Deploy the update to your device.
If this answers your query, do click Accept Answer
and **Yes**
for this answer as helpful. And, if you have any further query do let us know.