cancel
Showing results for 
Search instead for 
Did you mean: 

while generating code to mbedTLS and SSL server.

srikanth
Associate III

I generated the code to stm32h750vib and i enabled RTOS,mbedTLS,LWIP and Eth connectivity .

After build the code in keil v5 getting error in ssl_cache.o file.(see the attached screenshot)

Help me to solve this error .

2 REPLIES 2
thierry BINIGUER
Associate III

Hello,

Link fails because of time is not found.

Note Mbedtls uses a function time which is, according to Cube MX default configuration, not defined from the platform but must come from the system environment.

From my understanding, the time body is missing in the generated project.

Regarding STM32 Cube for F7 (https://www.st.com/en/embedded-software/stm32cubef7.html, e-g en.STM32Cube_FW_F7_V1.15.0), you can find in the mbed TLS examples (e-g STM32756G_EVAL project) a time body in this file : retarget.c

=> The Link passed if you add this file in the Project Src folder and in the KEIL project (for compilation).

To summarise, interesting files are from :

- mbedtls, platform_time.h where time source is defined (based on MBEDTLS_PLATFORM_TIME_MACRO).

- Keil SW, retarget.c where time body is given for uVision/ARM development tool.

Regards

thierry BINIGUER
Associate III

With the file !