i.MX8M plus mmap() issue
‎02-21-2022
03:38 AM
1,259 Views
Na-veen
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could it be possible to access DDR area from Linux user space with mmap() or related? I need a SHM- area between A53 process and am searching a minimum effort solution to realize that.
Thanks,
Nav
3 Replies
‎02-21-2022
08:13 PM
1,251 Views
b36401
NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you mean to communicate between A and M cores?
You can use rpmsg for such purposes.
‎02-22-2022
03:14 AM
1,244 Views
Na-veen
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
For communication between a53. I am trying to secure memory area between the cores.
Thanks,
Nav
‎02-21-2022
03:45 AM
1,257 Views
Na-veen
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Simple code example,
Trying to build simple application with below lines of code and it fails allocate memory with "No such device error"
char * region = mmap(NULL,4096, PROT_WRITE,MAP_PRIVATE,0,0);