BUG in USART Rx and Tx independently : STM32-MAT-TARGET.
- April 11, 2019
- 1 reply
- 804 views
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.
STM32-MAT-TARGET : 4.4.2
Matlab 2017b
MDK-ARM Professional Version : 5.14
MCU : STM32F103VET6
I want send the received data by Keypress Exti Response without enable USART_Receive Block 's Software Interrupt. In other words, I want to control the send timing instead of sending the received data almost simultaneously. Please my module following .
BUG: NbRcv will be set zero before being passed to USART_send model' Nb2Send ,This will result in the inability to send data.
Code interpretation:
1.NbRcv always be set to zero before the Exti-button is pressed;
2.NbRcv value assignment to Data Store Write Block;
3.Value of Data Store Read Block assignment to Nb2Send;
4.Wait for end of current send data . if Nb2Send is not 0, if condition is true, USART_Send function will be execute , but the contion will always be false, the USART_Send function will always not be execute.

