How to set up shared memory between CM4 and CM0p on Modus ToolBox2.0

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YunHuaD_81
Employee
Employee
25 sign-ins 10 sign-ins 5 replies posted

Hi Support Team,

I have built a project by – Create Project via Template. How to set up shared RAM between CM4 and CM0+ on MTB2.0 if I don't use IPC methods.

Thanks.

Dick

0 Likes
1 Solution
ChaoHaiM_11
Employee
Employee
25 replies posted 10 sign-ins 5 sign-ins

Hi Dick, We strongly recommend using IPC. Certainly, you can also use other ways such as the DFU example code. Download the Example from Creator IDE: CE221984 1. define a ram section in script: ram_common        (rwx) : ORIGIN = 0x08000000, LENGTH = 0x0100 .cy_boot_noinit.appId ORIGIN(ram_common) + LENGTH(ram_common) - 1 (NOLOAD) :     {         KEEP(*(.cy_boot_noinit.appId));     } > ram_common 2. define variable/array using the section: CY_SECTION(".cy_boot_noinit.appId") __USED static uint8_t cy_dfu_appId; Please refer to the example code for details.

View solution in original post

0 Likes
1 Reply
ChaoHaiM_11
Employee
Employee
25 replies posted 10 sign-ins 5 sign-ins

Hi Dick, We strongly recommend using IPC. Certainly, you can also use other ways such as the DFU example code. Download the Example from Creator IDE: CE221984 1. define a ram section in script: ram_common        (rwx) : ORIGIN = 0x08000000, LENGTH = 0x0100 .cy_boot_noinit.appId ORIGIN(ram_common) + LENGTH(ram_common) - 1 (NOLOAD) :     {         KEEP(*(.cy_boot_noinit.appId));     } > ram_common 2. define variable/array using the section: CY_SECTION(".cy_boot_noinit.appId") __USED static uint8_t cy_dfu_appId; Please refer to the example code for details.

0 Likes