Hi,
I am trying to get some timebase ticks in "hello word" example of bare board CW project on T1024 board.
Init_sram.tcl has following lines
[code]
# enable all cores in Boot Release Register (BRRL)
mem [CCSR_ADDR 0xe00e4] = 0x00000003
# enable timebases
mem [CCSR_ADDR 0xe2084] = 0x00000003
[/code]
However, when I read SPRN_TBRL I seems always get 0. That is
register uint32_t tic;
asm volatile("mfspr %0, 0x10c" : "=r" (tic));
tic is always 0. Did I miss something? How to make more or less precise timing in code running under debugger?
Thank you,
Ed