Hi
I installed QNX 7.0 on my Beaglebone Black. Now I need to get access to PRU-ICSS memory. ARM Cortex-A8 Memory Map says that PRU-ICSS memory starts at 0x4a300000 and ends at 0x4a37FFFF (512KB). Mapping this memory causes no errors:
void* pruss_memory = mmap_device_memory(NULL, 0x80000, PROT_READ|PROT_WRITE, 0, 0x4a300000);
if ( pruss_memory == MAP_FAILED )
{
perror( "mmap_device_memory failed" );
exit( EXIT_FAILURE );
}
However when I try to read or write to this memory I get this error:
Process 81942 (LedyTest) terminated SIGBUS code=2 fltno=40 ip=100c8f9a(/tmp/LedyTest@_btext+0x000001fe) mapaddr=00000f9a. ref=28000000
Does anyone know how to solve this problem?
Thanks in advance