2020-09-20 11:00 PM
My STM32F769-disco is connected via built-in st-link 2.1 to my computer. I use the bypass USART for printf(). And that works OK for output data, whereas input data stuck before they come to USART->RDR and do up the RXNE flag indicating an interrupt.
Here the states of registers involved in the process.
USART1->CR1 = 0x0000002d (UE, RE, TE, RXNEIE)
USART1->ISR = 0x006200c2 (FE, TC, TXE, CMF, TEACK, REACK)
NVIC->ISER1->SETENA = 0x00000020
NVIC->IPR9->IPR_IN0 = 0xe0
So, it is seen that the USART is adjusted right. The hex-data of NVIC indicate the state of the interrupt had been set and it could be confirmed by changing the flag RXNEIE to TXEIE or TCIE (the interrupt starts to work as it has to, or, at least, as it is expected).
PA9 and PA10 are set as push-pull alternatives AF7 at the highest speed.
I made a tryout to set RX as a floating input with no result.
RCC is set correctly as well.
Is here a little secret maybe or something kind of?
Thanks any help. -)
Solved! Go to Solution.
2020-09-21 09:30 PM
My apologies. Soldering issue. Closed.
2020-09-21 02:19 AM
Would need to clear the framing error to accept more data.
2020-09-21 03:26 AM
Is it a SKU issue? I haven't any USART troubles with f0-f4 SKUs before. Do you know what a bit or a register I should kick?
2020-09-21 09:30 PM
My apologies. Soldering issue. Closed.