Skip to main content
Associate III
October 18, 2024
Question

Function OPENAMP_send Error

  • October 18, 2024
  • 1 reply
  • 1510 views

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

 

 

1 reply

mƎALLEm
Technical Moderator
October 18, 2024
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Associate III
October 21, 2024

Hello @mƎALLEm 

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