5 years, 4 months ago.

mbedtls_printf does not display text on the terminal

Hi! I want to test DTLS libraries on two K64F boards with ARM Mbed OS. I have just created a new project:

mbed new.

I created a folder named source and copied the dtls_client.c obtained on the mbeddtls project page there. I changed the value of the SERVER_ADDR constant.

I repeated this process with the file dtls_server.c.

Both projects are compiled without any errors.

mbed compile -m K64F -t GCC_ARM -c

I have copied each bin file to a different board, but when I connect to them via a putty terminal, I see nothing. I use this link to my other programs and it works. I think it may have something to do with the connection (now it's 115200).

I see that the mbedtls_printf function is used to print messages. It's pretty important for me to get the answer as soon as possible because it's the part of my plagiarism checker project. I tried to insert some printf traces, but I can't see them either. How do I configure the terminal so that it can see something?

1 Answer

5 years, 4 months ago.

Hi Margaret,

If you change debug macro level up when you compile as shown below, you can see a message of mbedtls_printf.

mbed compile -m K64F -t GCC_ARM -D DEBUG_LEVEL=1

I tested code with mbed-os-example-tls/hashing and https://github.com/ARMmbed/mbed-os/issues/4985 this is same as your question.

Daniel,