Ubuntu with longsleep kernel.
Thank you for this thread. Between this and some posts on using the GPIO on a Raspberry Pi I got what I was trying to do working without too much frustration.
If that OpenOCD driver uses the GPIO hardware directly (looks like it since there is a base address define), it will be different on the Pine and you have to look at how to port the GPIO driver for the bcm2835 to the A64 since the registers are also different... I prefer FTDI based JTAG adapters that implement the electrical part in hardware...
08-09-2016, 02:30 PM
(This post was last modified: 08-09-2016, 02:35 PM by MarkHaysHarris777.)
You will need to provide an external pull-up resistor 4.7k to 3v3...
...that will give you '1' unless you ground the pin (on the pin side of the 4.7k resistor.
Or, you can define the input as having a pull-up and then the pull-up will be internal.
PS you can experiment with 'strong' or 'weak' pull-up resistors, anything from 1k to 10k, the higher the number, the weaker the pull-up.
PSS I too will experiment with pin(3) GPIO02 as input... on debian... will get back to you soon
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )