Skip to main content
Visitor II
April 7, 2021
Question

OpenAMP FreeRTOS PingPong demo isn't working on the Nucleo-H745ZI-Q with the M4 getting hung waiting for the resource table to be configured by the M7

  • April 7, 2021
  • 5 replies
  • 1610 views

Background

Firmware STM32Cube FW_H7 V1.9.0

MCU Reference STM32H745ZITx

Toolchain STM32CubeIDE

I created a new STM32 project targeting the Nucleo-H745ZI-Q enabling the OpenAMP Middleware along with FreeRTOS. Referencing the project for the Disco board, I copied the software over and making sure to enable the what I needed to in hal conf as well and made sure the correct compiler symbols were defined.

The M7 seems to be configured properly and running.

The M7 is able to hold wake the M4 on reset via HSEM event and go through it's openamp initialization to wait at OPENAMP_Wait_EndPointready

On the M4 side it's stuck at

```while(resource_table.vring1.da != VRING_RX_ADDRESS)```

even though I stepped through the M7 code to see that it did do that assignment.

I'm wondering if there is some linker script problem I've got.

For some background on that, I did see the note in the openamp_conf.h to add the relevant lines in Memory to define the OPEN_AMP_SHMEM location and lengths along with the start and end regions.

I noticed in the STM32H747I-DISCO application there was also the addition of

.openamp_section (NOLOAD) : {
 . = ABSOLUTE(0x38000000);
 *(.resource_table) 
 } >OPENAMP_RSC_TAB AT > FLASH

in the Sections block of the .ld file for both the M7 and M4 assuming that is where the resource table is mapped to.

Is there something else I should be configuring for the H745ZI-Q? I've been pullin my hair out on this for some time now.

    This topic has been closed for replies.

    5 replies

    Visitor II
    April 10, 2021

    @Community member​ I see you're familiar with openamp and shed some light on other issues. Do you see anything that jumps out here or is there any more information I could provide?

    ST Employee
    April 19, 2021

    Hi @caffeinated capybara​ 

    Is the Cortex-M7 data cache enabled or not?

    Bouraoui

    Graduate
    May 6, 2021

    Hi @caffeinated capybara​ ,

    did you get a response from ST? Did you get the problem fixed?

    I am still looking for advice.

    Thanks a lot!

    Johannes

    Graduate
    May 20, 2021

    @Bouraoui Chemli​ , @caffeinated capybara​ 

    No answer, neither from ST, nor from other community members.

    This community does not seem to be very productive

    OK, never mind....

    Explorer II
    December 31, 2024

    Hi all,

    did anyone solve this?

    Just starting messing with OpenAmp and I have both CM4 and CM7 stucking at OPENAMP_Wait_EndPointready

    Thanks

     

    Arianna