Part Number: AM3358
Hi Ti,
The TCRR reg is a negative number when I use “readl_relaxed” to read the reg , but I read it in user space by mmap that is correct?
Could you help me to resolve it?
Thanks.
BRs
Jiawei
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM3358
Hi Ti,
The TCRR reg is a negative number when I use “readl_relaxed” to read the reg , but I read it in user space by mmap that is correct?
Could you help me to resolve it?
Thanks.
BRs
Jiawei
user6316547 said:The TCRR reg is a negative number when I use “readl_relaxed” to read the reg
The timer counter register is a 32-bit unsigned value, and readl() should return the same. How are you reading a negative number?
user6316547 said:but I read it in user space by mmap that is correct?
Yes mmap via /dev/ mem is one way to get to that value.
Regards, Andreas