How can I output the logs from the MbedTLS library through UART?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TakMune
Level 4
Level 4
Distributor - Macnica (Japan)
First like given 100 sign-ins First solution authored

I’m trying to connect the CSBSYSKIT-DEV-01 to own MQTT-TLS broker based on sample application mtb-example-optiga-mqtt-client.

How can I output the logs from the MbedTLS library through UART?

Below options are defined in the makefile.

MBEDTLSFLAGS = MBEDTLS_USER_CONFIG_FILE='"mbedtls_user_config.h"' CY_CRYPTO_HAL_DISABLE ENABLE_SECURE_SOCKETS_LOGS

0 Likes
1 Solution
tayo
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 25 solutions authored 250 sign-ins

Hello 

Could you try to change the definition of log_level defined in <project name>libs\secure-sockets\source\COMPONENT_MBEDTLS\cy_tls.c?

#define MBEDTLS_VERBOSE <log_level>

Thanks

View solution in original post

0 Likes
1 Reply
tayo
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 25 solutions authored 250 sign-ins

Hello 

Could you try to change the definition of log_level defined in <project name>libs\secure-sockets\source\COMPONENT_MBEDTLS\cy_tls.c?

#define MBEDTLS_VERBOSE <log_level>

Thanks

0 Likes