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,
or ptr = mmap_device_io (0x2000, 0x80000000)
Thanks in advance,