AnsweredAssumed Answered

Hard Fault on SEMA4 CP1INE access?

Question asked by Matthew Maciag on Feb 13, 2014
Latest reply on Feb 14, 2014 by Matthew Maciag



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))


int main()


     SystemInit();          // Sets vector table and  enables all peripheral clocks excepting GPU


     CPINE = 0x1000;

     GATE = 2;