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:
Solved! Go to Solution.
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
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
Hi Ruiyuan:
I have tried this."colume size as 1 " but I can't read the registers !
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
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.
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
Erich, please keep working on the customer's further question.
Thanks,
Yixing
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
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!