MPC5200

Hi,
I am working with 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

The BSP moves MBAR base to 0xf0000000.

otto parzhuber <oparz@compuserve.de> wrote:

Hi,
I am working with 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



David Green (dgreen@qnx.com)
QNX Software Systems Ltd.
http://www.qnx.com