cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
257 Views
Registered: ‎07-30-2020

Can't set the leds with gpio-demo on VCK190

Hi,

Following the guide UG1305, I created a GPIO mapping to the leds, however when I set the output to 1 with gpio-demo, nothing happens.

I'm using Petalinux 2020.1, Also the prebuilt example doesn't work, so I don't think the problem is with me.

Can someone assist ?

Thanks,

Ramon.

0 Kudos
3 Replies
Highlighted
Xilinx Employee
Xilinx Employee
198 Views
Registered: ‎11-05-2019

 

Hi @rfried 

 

If you could explain how you created the design, we could give you some advice.

For example, did you create your design according to UG1305 Ch.6 "System Design Examples"?

What Petalinux command or operation did you use to create the Boot Image?

 

Thank you


Please mark the Answer as Accept as Solution if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
128 Views
Registered: ‎11-05-2019

 

Hi @rfried 

 

If you want to test LED using VCK190's AXI-GPIO, you can also try the following flow.

 

Vivado Design

 

$ cd ug1305-embedded-design-tutorial/pl/pl_axigpio
$ vivado

source ./scripts/create_project.tcl
Generate Device Image
Export Hardware

 

Petalinux

 

$ petalinux-create -t project -s xilinx-vck190-v2020.1-final.bsp
$ cd xilinx-vck190-2020.1/
$ petalinux-config --get-hw-description=../xsa
$ petalinux-config -c kernel

Device Drivers
[*]GPIO Support
[*]/sys/class/gpio/... (sysfs interface)
Memory mapped GPIO drivers
[*]Xilinx GPIO Support

$ petalinux-build
$ cd images/linux/
$ petalinux-package --boot --plm --psmfw --dtb --u-boot --atf --force

Please refer also Xilinx Wiki AXI GPIO

 

VCK190

 

# cd /sys/class/gpio
# ls -l
total 0
--w-------    1 root     root          4096 Jan 29 21:50 export
lrwxrwxrwx    1 root     root             0 Jan 29 21:50 gpiochip334 -> ../../devices/platform/amba/f1020000.gpio/gpio/gpiochip334
lrwxrwxrwx    1 root     root             0 Jan 29 21:50 gpiochip450 -> ../../devices/platform/amba/ff0b0000.gpio/gpio/gpiochip450
lrwxrwxrwx    1 root     root             0 Jan 29 21:50 gpiochip508 -> ../../devices/platform/amba_pl@0/a4000000.gpio/gpio/gpiochip508
--w-------    1 root     root          4096 Jan 29 21:50 unexport

# echo 508 > /sys/class/gpio/export
# echo out > gpio508/direction
# echo 1 > gpio508/value
# echo 0 > gpio508/value

 

Thank you


Don't forget to Reply, Kudo, and Accept as Solution.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
108 Views
Registered: ‎11-05-2019

 

Hi @rfried 

 

If already issue has resolved, Kudo, and Accept as Solution.
If you have any questions, you can post them.

 

Thank you.

0 Kudos