cancel
Showing results for 
Search instead for 
Did you mean: 

Function OPENAMP_send Error

StrangeTau
Associate II

Hello

 

Error Definition1 : the return value of the OPENAMP_send function is 4. // RPMSG_ERR_NO_MEM?

Error Definition2 : the return value of the OPENAMP_send function is -2007. // RPMSG_ERR_ADDR

 

I'm developing RTOS environment of dual-core in STM32H757.

In OpenAMP communication mode, CM4 is the master and CM7 is the slave, and I used SRAM4 to create SHMEM.

I could refer to the examples provided by STM32, and I read the application note AN5617.

however, I can't find a solution for the error. 

 

If the dest_addr is the address of the endpoint, the definition1 occurs, and if the dest_addr is RPMSG_ADDR_ANY, the definition2 occurs.

 

1. I think my OpenAMP Structure is simmilar to the OpenAMP example below. Isn't it?

2. In STM32CubeIDE Build Analyzer, if OPEN_AMP_SHMEM is not currently being used, will the above error definition1 occur?

 

Any help is greatly appreciated!

 

Friendly regards, Tau

 

# AN5617 Figure 9. OpenAMP example

StrangeTau_0-1729210018747.png

OpenAMP communication mode : master CM4

StrangeTau_4-1729210221865.png

OpenAMP communication mode : slave CM7

StrangeTau_2-1729210019216.png

# STM32CubeIDE Build Analyzer : Memory Regions

StrangeTau_3-1729210018765.png

 

 

2 REPLIES 2
SofLit
ST Employee

Hello @StrangeTau ,

Please no need for Thread duplication: 

https://community.st.com/t5/stm32-mcus-embedded-software/function-openamp-send-error-return-value-4/td-p/731719

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.

Hello @SofLit 

I apologize for my mistake in not following the community guidelines.