Sorry, you need to enable JavaScript to visit this website.

What GPIO for LED9

Unsolved
8 posts / 0 new
milosoftware's picture
milosoftware
Junior(0)
What GPIO for LED9

The LED next to the oled display, conveniently labeled "led9" and "MI07" is supposedly connected to the CPU via GPIO, and does not need programmable logic like the other leds.

This makes it ideal for a kernel status LED, but I cannot find what GPIO line it is attached to. Anyone know this?

The buttons next to that led are GPIO 50 and 51, they work fine without PL.

zedhed's picture
zedhed
Moderator(22)
RE: What GPIO for LED9

Hi milosoftware,

The LED LD9 is connected to MIO pin 7 that's why you see the label MIO7 so it should end up getting mapped to GPIO7.

According to the Digilent OOB Demo Documentation: "LD9 is used to indicate read/write activity on the SD card." As a result, you may not be able to use GPIO7 as a regular GPIO from the OOB Linux Demo.

Regards,

-Kevin

milosoftware's picture
milosoftware
Junior(0)
It's not gpio7

LD9 is just always ON. No relation to SD card activity.

matto's picture
matto
Junior(0)
access with standalone application

It looks like this question is about accessing the LED from Linux, so I'm not sure how much this will help...

Here is how I was able to access the LED (and the two PS pushbuttons) with a standalone application.

#include <xgpiops.h>

XGpioPs_Config * ConfigPtr = XGpioPs_LookupConfig(XPAR_PS7_GPIO_0_DEVICE_ID);
XGpioPs_CfgInitialize(&Gpio, ConfigPtr, ConfigPtr->BaseAddr);

XGpioPs_SetDirectionPin(&Gpio, 7, 1);

// Enable LED
XGpioPs_WritePin(&Gpio, 7, 0x01);

// Disable LED
XGpioPs_WritePin(&Gpio, 7, 0x00);

// Read status of the PS side buttons
int pushButton50 = XGpioPs_ReadPin(&Gpio,50);
int pushButton51 = XGpioPs_ReadPin(&Gpio,51);

KUGA's picture
KUGA
Junior(0)
matto, you forgot:

matto, you forgot:
XGpioPs_SetOutputEnablePin(&Gpio, LED, 1);

devel's picture
devel
Junior(0)
slide switches and 8 leds

Hello
How do I determine the offset for gpio
What gpioxx should be used for the 8 leds. I am using ZedBoard_Linux_Design for generation of system.bit After using fpga.bin that was built using cf_adv7511_zed
The slides switches work with the following files
#!/bin/bash
#This appears to work with fpga.bin loaded
echo "++ Exporting switches "
for i in 0 1 2 3 4 5 6 7;
do
sw=$(($i+65));
echo $sw > /sys/class/gpio/export;
done;
and
#!/bin/sh
value=0;
for i in 0 1 2 3 4 5 6 7;
do
sw=$((72-$i));
sw_tmp=`cat /sys/class/gpio/gpio$sw/value`;
value=$(($value*2));
value=$(($value+$sw_tmp));
done;
printf "0x%x %d\n" $value $value;
The following is in system.ucf
NET processing_system7_0_GPIO_pin[11] LOC = F22 | IOSTANDARD="LVCMOS25"; # "SW0"
NET processing_system7_0_GPIO_pin[12] LOC = G22 | IOSTANDARD="LVCMOS25"; # "SW1"
NET processing_system7_0_GPIO_pin[13] LOC = H22 | IOSTANDARD="LVCMOS25"; # "SW2"
NET processing_system7_0_GPIO_pin[14] LOC = F21 | IOSTANDARD="LVCMOS25"; # "SW3"
NET processing_system7_0_GPIO_pin[15] LOC = H19 | IOSTANDARD="LVCMOS25"; # "SW4"
NET processing_system7_0_GPIO_pin[16] LOC = H18 | IOSTANDARD="LVCMOS25"; # "SW5"
NET processing_system7_0_GPIO_pin[17] LOC = H17 | IOSTANDARD="LVCMOS25"; # "SW6"
NET processing_system7_0_GPIO_pin[18] LOC = M15 | IOSTANDARD="LVCMOS25"; # "SW7"

NET processing_system7_0_GPIO_pin[19] LOC = T22 | IOSTANDARD="LVCMOS33"; # "LD0"
NET processing_system7_0_GPIO_pin[20] LOC = T21 | IOSTANDARD="LVCMOS33"; # "LD1"
NET processing_system7_0_GPIO_pin[21] LOC = U22 | IOSTANDARD="LVCMOS33"; # "LD2"
NET processing_system7_0_GPIO_pin[22] LOC = U21 | IOSTANDARD="LVCMOS33"; # "LD3"
NET processing_system7_0_GPIO_pin[23] LOC = V22 | IOSTANDARD="LVCMOS33"; # "LD4"
NET processing_system7_0_GPIO_pin[24] LOC = W22 | IOSTANDARD="LVCMOS33"; # "LD5"
NET processing_system7_0_GPIO_pin[25] LOC = U19 | IOSTANDARD="LVCMOS33"; # "LD6"
NET processing_system7_0_GPIO_pin[26] LOC = U14 | IOSTANDARD="LVCMOS33"; # "LD7"

elouri's picture
elouri
Junior(0)
sending data over axi4 bus from master to slave example code

Hi,
I want create two IPs ( master and slave) and i want send a data from master to slave , by using axi bus.
i want programme on C. Same one have one exemple for this ? thx a lot

elouri's picture
elouri
Junior(0)
create a simple AXI_LITE-Master IP core and AXI_LITE-slave IP

Hi,
I want create two IP ( master and slave) and i want send a data from master to slave , by using axi bus.
i want programme on C. Same one have one exemple for this ?I want work on the Zynq zeadbord 7zc702.
SAme one can help me please.