AnsweredAssumed Answered

STM32F072x usart rx interrupt receive what I send to printf

Question asked by hu.sophie on Dec 3, 2014
Latest reply on Dec 3, 2014 by hu.sophie
Hi ST,

I connect my module usart tx/rx with STM32F072x PA10/PA9, and initial PA10&PA9 as usart1 to communicate with my module.
Besides, I use printf to IAR Terminal IO window to debug, not redirect printf to usart1 or other usart ports.
In sometimes, usart1 RX interrupt will receive what I send to printf, like:
c0 4e c0 20 74 69 6d 20 69 6e 69 74 20 63 6f 6d     .N. tim init com
70 6c 65 74 65 0d 0a 00 5b 25 73 3a 25 64 5d 20     plete...[%s:%d] 
73 70 69 20 69 6e 69 74 20 63 6f 6d 70 6c 65 74     spi init complet

Why? And how to prevent it?
That makes me not to communicate with my module.

Thanks.

Outcomes