gpio test in U-boot for LS1021ATWR

cancel
Showing results for 
Search instead for 
Did you mean: 

gpio test in U-boot for LS1021ATWR

313 Views
niexuzhong
Contributor II

Hi 

  I want to test the GPIO  function for LS1021ATWR for uboot, After I check schematic, I choose GPIO3_03 pin to test it. first I change EC1=1 in rcw file. then compile the rcw file and modify the uboot image. the  RCW  during start is as following:

00000000: 0608000a 00000000 00000000 00000000
00000010: 30000000 00007900 60040a00 21046000
00000020: 00000000 00000000 00000000 20000000
00000030: 00080000 281b7340 00000000 00000000

So the GPIO3[2:14]pin  had been set as GPIO pin. The B42 pin of primary connector is  GPIO3_03,

The GPIO3 direction register is 0x2320000, the data regsiter is 0x2320008. so I use command 

mw 0x02320000 8 1  to set GPIO3_03 as output. ,the 0x02320004 is 0x00000000, then I use command

mv 0x02320008 8 1 

but I check the voltage of B42. The voltage of B42 is still low. I don't know if there is error in my operations. Who can give me some suggestions? Thank you!

0 Kudos
5 Replies

310 Views
ufedor
NXP TechSupport
NXP TechSupport

Please try:

mw 0x02320000 10000000

mw 0x02320008 10000000

0 Kudos

298 Views
niexuzhong
Contributor II

mw 0x023200000 10000000

mw 0x023200008 10000000

Does such instruction is to test pin 28 of GPIO3? I test it as your instruction. but the result is same

0 Kudos

294 Views
ufedor
NXP TechSupport
NXP TechSupport

After:

mw 23200000 10000000

mw 23200008 10000000

Please provide output of:

md 23200000 4

0 Kudos

290 Views
niexuzhong
Contributor II

=> mw 02320000 10000000
=> mw 02320008 10000000
=> md 02320000 4
02320000: 10000000 00000000 0000be15 0000be15 ................

0 Kudos

272 Views
niexuzhong
Contributor II

who can give me more suggestions? Thanks

0 Kudos