This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

printf problem after startup of device

Hello

I'm facing with printf over uart problem in my app. Application based on uart example from SDK 15.2.

However, it happens that printf function prints message to uart while on debugger. After start-up every time the first printf miss to print something. After that, it works properly.

Do I miss something related to configuration? Is there a time limits when i can't send over UART or I need to flush some internal buffers before printf call? I dont have Idea where is the problem.

Every kind of help is welcome.

Best regards,

Predrag

Parents
  • After start-up every time the first printf miss to print something. After that, it works properly.

     Are you calling printf() before uart_init()? That will not work. However, then the program should hang, like explained here, and it doesn't seem that's your case.

    Could you share your project or a minimal project that demonstrates this behavior, then I can try to reproduce it. I can make the case private if you would like so.

    Best regards,

    Simon

Reply
  • After start-up every time the first printf miss to print something. After that, it works properly.

     Are you calling printf() before uart_init()? That will not work. However, then the program should hang, like explained here, and it doesn't seem that's your case.

    Could you share your project or a minimal project that demonstrates this behavior, then I can try to reproduce it. I can make the case private if you would like so.

    Best regards,

    Simon

Children
No Data
Related