Is GPIO programming supported on UP2 Pro?
I'm working on a prototype device and I need to be able to bitbang data across the GPIO to a connected device (raspberry pi). I need at least 40kbps, and I've already tested the Pi at over 1mpbs using low-level C.
I have an UP2 pro with the V2.2 BIOS. I've set all the GPIO pins to input in the BIOS.
I've followed the given instructions to install 18.04 Desktop LTS, the updated kernel, and the HAT functionality (added to my user)
uname -a gives:
Linux UpUpBallot 5.4.0-1-generic #0~upboard4-Ubuntu SMP Thu Sep 23 01:47:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
And I've followed the directions to install MRAA
running hellomraa.c gives:
Running on Unknown platform
Trying to run the gpio.c example results in an error for whatever pin number I try to test:
Failed to initialize GPIO 23
Which confuses me because I can use the filesystem to control the pin voltages by writing to /sys/class/gpio
echo 23 > export cd gpio23 echo "out" > direction echo 1 > value
** confirm with DMM that pin is high **
echo 0 > value
** confirm with DMM that pin is low **
echo "in" > direction cd .. echo 23 > unexport
Is there a step I missed somewhere here? I'd really like to use the up2 pro board for this product, but I'm running out of time. Everything else is set and ready to go, so it's frustrating getting hung up on something so seemingly simple.
- 284 All Categories
- 104 Announcements & News
- 44 Product News - New Product/Product Change Notice/ End-of-life
- 179 Welcome Developers!
- 49 Unboxing & Project Sharing
- 18 Tech Updates
- 351 UP Products
- 5 UP Xtreme i11
- 6 UP Squared 6000
- 38 UP Squared Pro
- 124 UP Xtreme
- 789 UP Squared
- 1.4K UP Board
- 83 UP Core Plus
- 215 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 213 Starter Kits & Peripheral