November 12, 2019, 08:19:17 pm

News:

SMF - Just Installed!


A10 LIME: GPIO Naming

Started by mangokid, August 08, 2016, 06:26:34 pm

Previous topic - Next topic

mangokid

At the moment I am porting an app over from another Linux board to the A10 lime board. The app uses openocd sysfsGPIO (the linux gpio bitbang jtag debugger). On the A10 when a GPIO is exported the symbolic link does not follow the normal naming convention used.

export 20 > /sys/class/gpio  yields gpio20_ph12

OpenOCD doesn't like this because it expects the symbolic link to be just gpio20

At the moment I have a bit of a hack in OpenOCD that fixes this. What I would like to do is just change it so that when the GPIO are exported they don't have the longer name so gpio20_ph12 is just gpio20. This naming made it awesome for gpio stuff but now its a pain.

Keep in mind I am a hardware guy so there may be an obvious solution that went over my head.