Read/Write registers on imx6ullevk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Read/Write registers on imx6ullevk

627 Views
fabio_poiatti
Contributor III

I have the IMX6ULLEVK started with a BSP created by myself with

POKY DISTRO from FSL-COMMUNITY-BSP-PLATFORM branch THUD

How is possible to read and write the processor registers?

Thanks

Fabio

0 Kudos
2 Replies

522 Views
b36401
NXP Employee
NXP Employee

You can use memtool ulility (in our BSP it is /unit_tests/memtool binary) to access registers.
Here is its usage:

# /unit_tests/memtool
Usage:

Read memory: memtool [-8 | -16 | -32] <phys addr> <count>
Write memory: memtool [-8 | -16 | -32] <phys addr>=<value>

List SOC module: memtool *. or memtool .
Read register: memtool UART1.*
                        memtool UART1.UMCR
                        memtool UART1.UMCR.MDEN
                        memtool UART1.-
Write register: memtool UART.UMCR=0x12
                        memtool UART.UMCR.MDEN=0x1
Default access size is 32-bit.

Address, count and value are all in hex.

To support autocompete feature please run below command:
complete -o nospace -C /unit_tests/memtool memtool
#

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

522 Views
fabio_poiatti
Contributor III

thanks

I saw unit_tests in the sdcard coming with EVK and I will try ... but I'm asking you

how is possible to generate a BSP starting from fsl-community-bsp-platform 

with that feature inside ...

I tried adding imx-test but without success

thanks

0 Kudos