EmbSysRegisters Question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

EmbSysRegisters Question

619件の閲覧回数
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 返答(返信)

388件の閲覧回数
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 件の賞賛
返信

388件の閲覧回数
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 件の賞賛
返信