cancel
Showing results for 
Search instead for 
Did you mean: 

How VIRT_UART_Transmit works when the A7 doesn't do anything?

MJo.3
Associate II

Hello!

I make my M4 chip communicate with the A7 with openAMP from the example code.
I send the data from M4 and currently A7 doesn't do anything.
code is like below
char buffer[512];
//in the 1ms interrupt
if(currentPosition < 512){
currentPosition = sprintf(buffer+currentPosition, %s, "someData");
SendDataFlag = true;
}

//in the code for handle openAMP communication
if(SendDataFlag){
VIRT_UART_Transmit(&huart0, buffer, currentPosition);
currentPosition = 0; 
SendDataFlag = false;
}

In debugger, the currentPosition changes a lot when I didn't receive the data from A7 at all.
what is happening to Transmit function in this scenario?
My assumption is , VIRT_UART_Transmit send data to M4 buffer and replace the data to new one after it reached buffer's limit.

please clarify this because, I don't want the buffer cause any problems.

thanks! 

0 REPLIES 0