1 Reply Latest reply on Mar 8, 2020 7:04 PM by ChaoHaiM_11

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

    YunHuaD_81

      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

        • 1. Re: How to set up shared memory between CM4 and CM0p  on Modus ToolBox2.0
          ChaoHaiM_11

          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.