MPC5200 Register access

Hi,
I am a new user of the Motorola MPC5200Lite Evaluation Board. I have problems to access the registers of the MPC5200, located at the MBAR adress 0x80000000 + offset. I’ve tried the mmap_device_memory with different flag-combinations and mmap_device_io. I have requested the IO privilege by ThreadCtl (_NTO_TCTL_IO, 0).
The result was always a SIGSEGV (Segmentation failure).

ptr = mmap_device_memory (0, 0x2000,
PROT_READ | PROT_WRITE | PROT_NOCACHE,
MAP_SHARED | MAP_PHYS,
0x80000000);

or ptr = mmap_device_io (0x2000, 0x80000000)

Thanks in advance,
op

And do you get a SIGSEGV when you call mmap_device_io() or when you do something later on? Do you check the results from the mmap_device_io() to ensure you don’t have an error? Same with the call to ThreadCtl().

Thank you,

I have received an answer from a qnx newsgroup:
The BSP of the MPC5200Lite board moves MBAR base to 0xf0000000, but I’ve nothing found about this in the BSP document!

Hi,

I have a problem with my TOTAL5200 SDP.
The problem is: I can´t start the “dBUG” mode and I can´t start the “OS” mode.
What can I do to solve this problem?