Hi,
the problem is that CRC registers are not covered by default MMU settings. So, access to the registers leads to bus error and to exception (IVOR1).
Add the following code to your project and it will work. It just creates new MMU page that covers area 0xFFE0_0000 - 0xFFEF_FFFF.
//MMU - TLB6
asm
{
lis r3, 0x1006
mtmas0 r3
lis r3, 0xC000
ori r3, r3, 0x0500
mtmas1 r3
lis r3, 0xFFE0
ori r3, r3, 0x000A
mtmas2 r3
lis r3, 0xFFE0
ori r3, r3, 0x003F
mtmas3 r3
tlbwe
}
Regards,
Lukas