M4 cannot read or write the memory address obtained from rpmsg-sdb
Hi,
I follow the tutorial "How to exchange data buffers with the coprocessor".
Unfortunately, my board doesn't run the tutorial directly.
I read the code "stm32_rpmsg_sdb.c","backend.c","main.c" and modified it slightly. Now M4 can receive the address sent by rpmsg-sdb, but when M4 writes directly to this address, it will enter"void HardFault_Handler(void)",also cannot read the correct data.
I modified the code of "stm32_rpmsg_sdb.c" to test whether the applied memory can be used. After successfully applying for memory, data was written and correctly read in app, indicating that memory allocation and mapping should have been successful.
Can M4 read and write the memory allocated from rpMSG-sdb directly?
Or can you only use DMA to copy M4 memory into the requested memory?
Thanks in advance.
