[Skyeye-developer] help simulating at91 timer
josh jordan
josh.outerspace at gmail.com
Tue Jul 17 23:51:08 CST 2007
I am trying to get timer0 to work to count cycles in simulation. Here
is some debug output:
p/x pTC0
$1 = 0xfffa0000
p/x *pTC0
$2 = {TC_CCR = 0x21, TC_CMR = 0x80000000, Reserved0 = {0x0, 0x0},
TC_CV = 0x0, TC_RA = 0x0, TC_RB = 0x0, TC_RC = 0x0, TC_SR = 0x0,
TC_IER = 0x0, TC_IDR = 0x0, TC_IMR = 0x0}
it recognizes the pTC0 pointer with the correct address. It decodes
the struct. But the values of the struct are stuck. My program
assigns other values to them but they always read as above. Even when
I try to change it like pTC0->TC_CCR=1 that has no effect either.
pTC0->TC_CV always reads zero!
It looks like the source code updates timers, I am just not using it correctly.
Here is my conf file, trimmed down most everything commented.
cpu: arm7tdmi
# machine(develop board) maybe at91 or ep7312
mach: at91
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00010000
mem_bank: map=M, type=RW, addr=0x00200000, size=0x00004000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
net: type=rtl8019, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
log: logon=0, logfile=/tmp/sk1.log, start=100000, end=200000
More information about the Skyeye-developer
mailing list