gpio test in U-boot for LS1021ATWR

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

gpio test in U-boot for LS1021ATWR

840件の閲覧回数
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 件の賞賛
5 返答(返信)

837件の閲覧回数
ufedor
NXP Employee
NXP Employee

Please try:

mw 0x02320000 10000000

mw 0x02320008 10000000

0 件の賞賛

825件の閲覧回数
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 件の賞賛

821件の閲覧回数
ufedor
NXP Employee
NXP Employee

After:

mw 23200000 10000000

mw 23200008 10000000

Please provide output of:

md 23200000 4

0 件の賞賛

817件の閲覧回数
niexuzhong
Contributor II

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

0 件の賞賛

799件の閲覧回数
niexuzhong
Contributor II

who can give me more suggestions? Thanks

0 件の賞賛