2025-05-07 11:06 PM
OS: Windows 10
STM32CubeIDE version: 1.18.1
Board: STM32H757XIH6
My project was made in TouchGFX 4.23.2. The project uses both cores on the board, they communicate with openamp. After updating to TouchGFX 4.25.0 and generating from ioc with the TGFX 4.25.0 generator. Openamp on the M4 core goes to error handler everytime. Openamp on M7 seems to be working.
If I run the original software, not updated to TGFX 4.25.0 everything works as expected.
This is the openamp code on M4:
int status;
MAILBOX_Init();
if(MX_OPENAMP_Init(RPMSG_REMOTE, NULL) != HAL_OK){
Error_Handler();
}
status = OPENAMP_create_endpoint(&rp_endpoint, RPMSG_SERVICE_NAME, RPMSG_ADDR_ANY, rpmsg_recv_callback, NULL);
if(status < 0){
Error_Handler();
}
receive_message();
This is the openamp code in a task on M7:
int status;
MAILBOX_Init();
rpmsg_init_ept(&rp_endpoint, RPMSG_CHAN_NAME, RPMSG_ADDR_ANY, RPMSG_ADDR_ANY, NULL, NULL);
if(MX_OPENAMP_Init(RPMSG_MASTER, new_service_cb) != HAL_OK)
{
Error_Handler();
}
OPENAMP_Wait_EndPointready(&rp_endpoint);
status = OPENAMP_send(&rp_endpoint, &received_data, sizeof(received_data));
2025-05-08 1:21 AM - edited 2025-05-08 1:23 AM