This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Incorrect Pins Triggered When Using gpio_lib_c
#1
Hello all,

I've been trying to play with TinkerBoard GPIO from C, and I've been having trouble with multiple pins being set to the incorrect logic level when I only intended to toggle a single GPIO pin. I have already filed a Github Issue, but I figured I would also post to the forum. All pin numbers I mention are using WiringPi's Pin Numbers, so "GPIO 5" in WiringPi is Pin 18 on TinkerBoard's GPIO header, etc.

Basically, I'm trying to toggle GPIO 5 (Pin 18 on the Header) low, then high, and then toggle GPIO 4 low. I would expect that GPIO 5 would remain high when I toggle GPIO 4 low in the described sequence, but all my testing has indicated that toggling GPIO 4 low will also bring GPIO 5 low (even if GPIO 4 was already low!). Is this a known issue w/ gpio_lib_c? Has anybody else had any issues like this?

My theory (I've been unable to test) is that the current values of GPIO ports on the TinkerBoard CPU aren't being saved/masked properly when a GPIO pin is toggled, so updating one GPIO pin sets the remaining pins in a bank to the same value.

Also I'd like to note: I've used the SPI Pins (Pin 19 and 23 on the GPIO header) as well, and they work just fine! Smile

Thanks in advance for any help/guidance!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)