cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP257x-EV1 OpenAMP Communication Verification

VicChang
Visitor

Dear ST Team,

I am currently working with the STM32MP257x-EV1 evaluation board to validate the BSP, following the official setup procedure provided on your Wiki.

At this stage, I am verifying OpenAMP communication between the Cortex-A35 and Cortex-M33 cores. However, I have encountered an issue where the VIRT_UART0_RxCpltCallback function in the M33 firmware does not produce any output, and it appears that the callback might not be triggered.

I would appreciate your assistance in clarifying the following:

  1. Are there any specific operational steps I might have missed?

  2. Could there be any misconfigurations in my current setup?

  3. How can I verify whether VIRT_UART0_RxCpltCallback is actually being executed?

Thank you for your support.

 

 

 

void VIRT_UART0_RxCpltCallback(VIRT_UART_HandleTypeDef *huart)

{

LOG_INFO("UART0 RX Callback, %d bytes received", huart->RxXferSize);

VirtUart0ChannelRxSize = huart->RxXferSize < MAX_BUFFER_SIZE? huart->RxXferSize : MAX_BUFFER_SIZE-1;

memcpy(VirtUart0ChannelBuffRx, huart->pRxBuffPtr, VirtUart0ChannelRxSize);

VirtUart0RxMsg = SET;

}

 

M33 Project:

https://github.com/STMicroelectronics/STM32CubeMP2/tree/main/Projects/STM32MP257F-EV1/Applications/OpenAMP/OpenAMP_TTY_echo

stty -onlcr -echo -F /dev/ttyRPMSG0
cat /dev/ttyRPMSG0 &
stty -onlcr -echo -F /dev/ttyRPMSG1
cat /dev/ttyRPMSG1 &
echo "Hello Virtual UART0" >/dev/ttyRPMSG0
echo "Hello Virtual UART1" >/dev/ttyRPMSG1

 

 

0 REPLIES 0