Skip to main content
srikanth
Associate III
May 18, 2019
Question

while generating code to mbedTLS and SSL server.

  • May 18, 2019
  • 2 replies
  • 1205 views

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 .

This topic has been closed for replies.

2 replies

thierry BINIGUER
ST Employee
May 23, 2019

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
ST Employee
May 23, 2019

With the file !