Skip to content

Shared memory between FreeRTOS and Linux cores #83

@ret7020

Description

@ret7020

I want to share some memory region in RAM that can been accessed by both cores. I will use mailbox for memory access control, but for now, I just want to write some data in RAM region from Linux core and read this data from FreeRTOS core.

I use devmem tool to write data from Linux:

devmem 0x89500000 b 0x123

And such code to read register from FreeRTOS (this code runs in task and check value each second):

volatile uint32_t *reg_addr = (uint32_t *)(0x89500000);
uint32_t value = *reg_addr;
printf("Reg data: %x \r\n", value);

When I changing register value from Linux it doesn't changes in FreeRTOS. But it I reboot board, FreeRTOS will print LAST value of register from Linux. Why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions