I'm trying to activate the system timer module (STM) on a MPC564xB board and try to read it's value.
Does any one of you already have a working code, so that I can re-use the same?
You are writing to the wrong bit positions. Use following...
STMCR = 0x00005001;
I tried to enable the STM module, with a prescalar "0x50" using the below code, but the register value doesn't seem to change.
#define STMCR ( *(volatile unsigned long *) 0xFFF3C000 );
STMCR = 0x80500000;
Can some one please help me out on this aspect?
Am I missing out on something here?
Is there a protection mechanism which is preventing me to write into this register?
Thanks for pointing out the mistake! It now works :-)
Retrieving data ...