STM32F746 Disco, STM32CubeIDE 1.7.0, Win 10, CMSIS-only, C language, on registers.
I'm writing a UART transmit driver on interrupts (load data into buffer array, automatically fetch it from there with interrupts when byte is loaded into tx shift register). Development is mid-way.
I've set up UART, set up NVIC. No problems so far.
The question about UART side of interrupts: if TXE becomes set while TXEIE is 0 (UART TXE interrupt disabled), but then I enable TXEIE, will TXE interrupt fire or do I have to manually check the state of TXE at that moment?
State 1: TXE = 0, TXEIE = 0
State 2: TXE = 1, TXEIE = 0
State 3: TXE = 1, TXEIE = 1
Does interrupt fire?
Also, similar question about NVIC:
If USART1 (or whatever other) peripheral sends an interrupt, but it's not enabled in NVIC, will it trigger an interrupt when I enable this interrupt in NVIC? (according to programming manual and my logic, it should simply be ignored and discarded at the time of arrival from USART to NVIC, I think, but I want confirmation/debunk)