Other Parts Discussed in Thread: PROCESSOR-SDK-AM437X
Hi,
Based on this thread I am debugging the code running on PRU by writing values to a known address on the RAM. I am using devmem2 utility to read the values.
On PRU
#define DEBUG *(volatile unsigned int *) 0x54440FD0 DEBUG = 0xDEADBEEF;
On ARM
devmem2 0x54440FD0
This works fine for testing. But I have couple of questions:
1. Can I use the same method for data communication between PRU and ARM in production?
2. We are directly accessing the memory without intimating the kernel, Is this a safe thing to do? What if the kernel allocates this memory to another application?
3. Section 30.3.1.2 Local Data Memory Map of the Technical Reference Manual says that PRU can access external host memory from 0x0008_0000 address, However, I can't access it from from 0x0008_0000. but I can access it at 0x54440FD0. How can I find the address mapping b/w ARM and PRU (so that I can use it in my application)?
Thanks