Decreasing RPMSG buffer size to 256 bytes on linux kernel will return "Failed to insert all hardware breakpoints.." when flashing or debugging M4 firmware from Cube IDE.
Hi there,
I am trying to decrease the RPMSG buffer size from 512 to 256 bytes. I have successfully managed to increase the buffer size in the past to 1024 and allocate more memory for 32VRINGS. When attempting to decrease the buffer size to lower than 512 in the linux side Cube IDE will prompt "Failed to insert all hardware breakpoints...". I am really curious on how openamp_conf relates to hardware breakpoints.
The configuration for both sides as follows:
Linux Side
virtio_rpmsg_bus.c :
#define MAX_RPMSG_NUM_BUFS (256)
#define MAX_RPMSG_BUF_SIZE (256)stm32mp15xx-dkx.dtsi:
vdev0vring0: vdev0vring0@10040000 {
compatible = "shared-dma-pool";
reg = <0x10040000 0x0800>;
no-map;
};
vdev0vring1: vdev0vring1@10040800 {
compatible = "shared-dma-pool";
reg = <0x10040800 0x0800>;
no-map;
};
vdev0buffer: vdev0buffer@10041000 {
compatible = "shared-dma-pool";
reg = <0x10041000 0x10000>;
no-map;
};M4 Side
STM32MP157CACX_RAM.ld
MEMORY
{
RETRAM_interrupts (xrw) : ORIGIN = 0x00000000, LENGTH = 0x00000298
FLASH_text (rx) : ORIGIN = 0x10000000, LENGTH = 128K
RAM1_data (xrw) : ORIGIN = 0x10020000, LENGTH = 128K
RAM2_ipc_shm (xrw) : ORIGIN = 0x10040000, LENGTH = 0x00011000
}