cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H573I-DK HTTP Client

Kbitsnbyte
Associate III

Hello ST Community -

I am seeking to migrate a functioning HTTP Client application from a SAMD51 MCU to STM32 silicon, I have an STM32H573I-DK on hand, objectives:

  • HTTP Client Ethernet (wired) connectivity using a static IP address
  • Storing retrieved JSON objects on an SD card
  • DIsplaying selected attributes on the 240x240 LCD

Other than the demo program, I have not deeply explored the STM32H573I-DK. Any configuration, and coding tips / examples would be greatly appreciated. 

Thanks much,

Kelly

 

2 REPLIES 2
Pavel A.
Super User

Here you can find help for your STM32 project.

You can split the project to 3 parts that can be done in parallel, maybe by different people: http client, SD-card and the LCD.

 

MStackDev_376
Associate II

Hello Kelly,

This is an interesting task. I can offer a suggestion on the HTTP Client side of your project.

You can use the Mongoose Networking Library. It's a lightweight library designed for embedded systems, with support for many networking protocols, and is a good fit here because it provides both a simple HTTP client and a built-in JSON parser. This means you don't need to add a separate library just to handle the retrieved objects. Mongoose is well-documented here and has a clean, non-blocking API.

You can use the following resources as a starting point:

  • a tutorial showcasing a basic HTTP client
  • to give you a working foundation on your specific hardware, here is a complete CubeIDE project for your STM32H573I-DK board running a simple webserver. This is the quickest way to integrate Mongoose with the Ethernet hardware setup to work properly on Cube. Once this base project is running, you can easily adapt it into an HTTP client using the logic from the tutorial above.

As for your other requirements, you can use the standard STM32 HAL functions for the SD card and LCD, and integrate those calls into the Mongoose project.

Heads up: I am part of the Mongoose development team. Hope this helps you get started.