EmbSysRegisters Question

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

EmbSysRegisters Question

696 次查看
jerrygardner
Contributor III

Here's a question for the EmbSysRegisters experts out there:

 

How does EmbSysReg read peripheral registers? The reason I ask is that there are peripheral registers, such as POPR in the SPI peripheral, that pull a word of data out of a FIFO when they're read. If EmbSysReg reads this register using the same method application code uses, it will "consume" one word of data from the RX FIFO every time it reads the POPR register. That data then disappears from the perspective of the application code.

标签 (1)
0 项奖励
回复
2 回复数

465 次查看
kennethtait
Contributor II

I'm adding this here since it seems appropriate.

using an MK22F1M0 on Kinetis on Linux.

in the debugger there is NO entry for this in embSysRegister choices. Closest match is 512k part which for all intent and purposes is almost the same.

Both parts have 6 UARTS. I only see 3 in the view...so what goes on here? How can I trust this debugger if it lies all the time?

Ken

0 项奖励
回复

465 次查看
BlackNight
NXP Employee
NXP Employee

Hi Jerry,

I would thing that you could get a definitive answer on EmbSysRegView .

But my understanding is that it reads the memory through the GDB/Debugger read command. So it does not execute some code on the target, but uses the debug interface to read the memory mapped registers.

Erich

0 项奖励
回复