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
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!
-----------------------------------------------------------------------------------------------------------------------
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