2024-03-31 07:26 PM - edited 2024-03-31 09:54 PM
I tried to enable RXNEIE with following code:
USART2->CR1 = (USART_CR1_TE | USART_CR1_UE | USART_CR1_RE | USART_CR1_RXNEIE);
But when I checked CR1 register, it's still set to 0:
gdb: x /8ub 0x40004400
0x40004400: 45 0 0 0 0 0 0 0
I checked the manual and there is no requirement for any pre-conditions before enabling the RXNEIE bit. Did I just miss something?
Solved! Go to Solution.
2024-03-31 07:45 PM
45 -> 0x2D (UE, RE, TE & RXNEIE)
Seems as expected here USART_CR1 +0
2024-03-31 07:45 PM
45 -> 0x2D (UE, RE, TE & RXNEIE)
Seems as expected here USART_CR1 +0
2024-03-31 09:52 PM - edited 2024-03-31 10:01 PM
Sorry, It's my fault!