I would like to run a simple application that uses hardware semaphores on phyCore board (Vybrid PVF65GS10CMK40 test rev.). I have a problem with
modifying CP1INE register. Whatever I do, any write access to this register causes Hard Fault.
This is a code sample:
#define GATE (*(volatile unsigned char*)(0x4001D000))
#define CPINE (*(volatile unsigned short*)(0x4001D048))
SystemInit(); // Sets vector table and enables all peripheral clocks excepting GPU
CPINE = 0x1000;
GATE = 2;