devmem2 bus error on VF50

cancel
Showing results for 
Search instead for 
Did you mean: 

devmem2 bus error on VF50

Jump to solution
1,917 Views
tomaszciesla
Contributor I

hi is there a memtool for VFxxx F like for iMX?

https://community.nxp.com/t5/i-MX-Processors/devmem-return-bus-error/td-p/1033596

We want to access directly registers for tests. devmem2 works only with some of them:

root@col-vf50:~# devmem2 0x400481dc
/dev/mem opened.
Memory mapped at address 0x76f4a000.
Read at address 0x400481DC (0x76f4a1dc): 0x000022ED

root@col-vf50:~# devmem2 0x400d0024
/dev/mem opened.
Memory mapped at address 0x76f2f000.
Bus error

Labels (1)
0 Kudos
1 Solution
1,837 Views
tomaszciesla
Contributor I

error occurs when there's no clock enabled for the subsystem:

   devmem2 0x4006b064 w 0x0000000f

unlocks read of Ethernet registers

   root@col-vf50:~# devmem2 0x400d0024
   /dev/mem opened.
   Memory mapped at address 0x76f93000.
   Read at address 0x400D0024 (0x76f93024): 0xF0000000

View solution in original post

0 Kudos
2 Replies
1,882 Views
jamesbone
NXP TechSupport
NXP TechSupport
0 Kudos
1,838 Views
tomaszciesla
Contributor I

error occurs when there's no clock enabled for the subsystem:

   devmem2 0x4006b064 w 0x0000000f

unlocks read of Ethernet registers

   root@col-vf50:~# devmem2 0x400d0024
   /dev/mem opened.
   Memory mapped at address 0x76f93000.
   Read at address 0x400D0024 (0x76f93024): 0xF0000000

0 Kudos