STM32-MAT-TARGET: Simultaneous reception on two different UARTs
Hello!
I'm experiencing difficulties using STM32-MAT-TARGET to generate code for STM32 controllers from Simulink models using the provided blocks for USART communication.
I'm using this setup:
- Nucleo-F401RE
- USART1 and USART6 with interrupt enabled
- EXTI1 and EXTI13 for use with software interrupt
The following pictures show my Simulink model:



Unfortunately, the program only does half the job. I observe that only one USART is actually receiving anything. The other just doesn't respond when I send it a byte. Either USART works if I have just one of them in my model. But with both USARTS in my model, one will work, the other won't. It seems to be whichever USART happens to get put into receptin mode first, will be the one that's working.
Can anyone help me with a solution to this problem? Is my setup correct? Does STM32-MAT-TARGET support this kind of operation?
Best regards
Roman
