cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX 4.25.0 update + OPEN AMP on STM32H7

Jakicaa
Associate II

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));

 

 

1 REPLY 1
mƎALLEm
ST Employee

Hello,

Look at these threads: thread 1 , thread 2 as it could be the origin of your issue.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.