2014-12-02 08:10 PM
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 com70 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 completWhy? And how to prevent it?That makes me not to communicate with my module.Thanks. #stm32f0 #usart #stm322014-12-02 08:22 PM
May be it's your code?
2014-12-02 09:43 PM
2014-12-02 11:24 PM
Can you look at the Rx pin with an oscilloscope?
JW2014-12-03 02:20 AM
It is solved.
Actually it is not a bug.It is not the usart rx interrupt really received what printf output.It is the memory that used by printf before, and be allocated for rx int in after but not be cleared.Thanks for all replyed.