How dose KDS read MCU regisers as bytes ?

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

How dose KDS read MCU regisers as bytes ?

ソリューションへジャンプ
3,619件の閲覧回数
haidong_zheng
NXP Employee
NXP Employee

How dose KDS read MCU regisers as bytes ?

For example I need read K22 UART0 register from 0x4006a000 which should be read as bytes . I found I almost can't do it in KDS!   While this feature is easily done in IAR and this is a must feature.

Dose I miss something for this ?

Please see below picture:

16644_16644.pngsnapshot27.png

ラベル(1)
0 件の賞賛
返信
1 解決策
3,266件の閲覧回数
BlackNight
NXP Employee
NXP Employee

You cannot control this in the Memory view, as this is independent of the underlying hardware. The memory view sends a request to the underlying GDB/debugger to read a chunk of memory, and it is then up to the GDB how it reads that memory. For performance reasons, of course GDB will use the most efficient way to read it (words).

So if you want to have byte access, you need to use a plugin like the EmbSysReg viewer which can read it close to the hardware.

Erich

元の投稿で解決策を見る

0 件の賞賛
返信
9 返答(返信)
3,266件の閲覧回数
jack
Contributor III

hi Hai dong,

You can right click memory view, and then select "Format" in the context menu. In the popup dialog, Select Column size as 1 and click OK. Then you can read memory with byte size.

Jack

0 件の賞賛
返信
3,266件の閲覧回数
haidong_zheng
NXP Employee
NXP Employee

Hi Ruiyuan:

I have tried this."colume size as 1 "   but I can't read the registers !

0 件の賞賛
返信
3,266件の閲覧回数
jack
Contributor III

hi Haidong,

I am not sure if KDS support reading memory-mapped registers in memory view. If you need to read peripheral register in KDS, you can install the EmbSysRegView by following the steps showed in Mr styger's blog. With that you can have a way to inspect peripheral registers under debug in KDS.

How to Add Register Details View in Eclipse | MCU on Eclipse

Jack

0 件の賞賛
返信
3,266件の閲覧回数
haidong_zheng
NXP Employee
NXP Employee

Hi Ruiyuan:

I have installed the EmbSysRegView, this plugin still could not change KDS how to read register, and it could not read UART registers also.

I just need know how KDS read registers byte by byte and how could I read UART register.

0 件の賞賛
返信
3,266件の閲覧回数
BlackNight
NXP Employee
NXP Employee

In the EmbSysRegView, you need first to double click on the item (so it gets green) in order to read the register values. See http://mcuoneclipse.com/2014/05/29/how-to-add-register-details-view-in-eclipse/

Erich

3,266件の閲覧回数
YixingKong
Senior Contributor IV

Erich, please keep working on the customer's further question.

Thanks,

Yixing

0 件の賞賛
返信
3,267件の閲覧回数
BlackNight
NXP Employee
NXP Employee

You cannot control this in the Memory view, as this is independent of the underlying hardware. The memory view sends a request to the underlying GDB/debugger to read a chunk of memory, and it is then up to the GDB how it reads that memory. For performance reasons, of course GDB will use the most efficient way to read it (words).

So if you want to have byte access, you need to use a plugin like the EmbSysReg viewer which can read it close to the hardware.

Erich

0 件の賞賛
返信
3,266件の閲覧回数
haidong_zheng
NXP Employee
NXP Employee

Hi Styger:

I have retried EmbSysRegView plugin again. This plugin could correctly read UART registers byte by byte.

But for KDS itself, could it do this way ?

Thanks!

0 件の賞賛
返信
3,266件の閲覧回数
YixingKong
Senior Contributor IV

guojia, are you able to help this issue please?

Thanks,

Yixing

0 件の賞賛
返信