cancel
Showing results for 
Search instead for 
Did you mean: 

Title: Integrating cJSON, mbedTLS, lwIP, and FatFS into an STM32U5 project

srikanthpalvai
Associate III

I'm working on a project with an STM32U5 device (NUCLEO-U5A5ZJ-Q) and I need to integrate cJSON, mbedTLS, lwIP, and FatFS to load and flash a configuration file cacert.pemonto the STM32 device. However, when I searched for mbedtls and lwip in the middleware and software packages, I couldn't find them.

Can anyone provide suggestions or guidance on how to integrate mbedtls, lwIP, and FatFS into my STM32 project? Additionally, I'm curious if there's a cJSON library available for STM32.


https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Projects/NUCLEO-U5A5ZJ-Q
https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Middlewares/Third_Party


https://github.com/STMicroelectronics/STM32CubeH7
https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Middlewares/Third_Party


I've noticed that the STM32H7 series has middleware third-party tools like lwIP and mbedTLS available, but these are not included in the STM32U5 series. Is there a specific reason why these middleware components are absent in the STM32U5 series compared to the H7 series?

Thank you in advance for your help!

12 REPLIES 12
srikanthpalvai
Associate III

@STea 

Question 1:
I have gone through this example.
STM32CubeU5/Projects/B-U585I-IOT02A/Applications/FileX at main · STMicroelectronics/STM32CubeU5 (github.com).
Here the example is to create the STM.TXT in the run-time 
/* Create a file called STM32.TXT in the root directory. */
nor_ospi_status = fx_file_create(&nor_ospi_flash_disk, "STM32.TXT");

But I have my pre-configured config.ini file and cacert.pem files for mbedlts communication. 
How can inject them into the stm32 target? Could you please share an example of it?


Question 2:
How can I integrate the NetXDuo TCP/IP stack into my project after establishing a PPP communication link with the SIM7600 module?

@STea Above 2 queries are pending 

@srikanthpalvai did you not see what @STea wrote:

 

@STea wrote:

Hello @srikanthpalvai ,

Can you please input your new queries in a new thread for better visibility and we can proceed by closing this one .

BR


https://community.st.com/t5/stm32-mcus-embedded-software/title-integrating-cjson-mbedtls-lwip-and-fatfs-into-an-stm32u5/m-p/650011/highlight/true#M46183