Home› UP Product Related Discussions› UP Squared› UP Squared Hardware Specification

Up squared change a GPIO pin (HAT) from input to output (or reversed)?

nhattan
nhattan New Member Posts: 2 ✭
August 2021 in UP Squared Hardware Specification

I have 2 Up Squared boards and I can not change the state of any GPIO pins (HAT) from input to output (or reversed) on Linux.

I saw that GPIO pins are connected to an FPGA and the IO state must be redefined in the BIOS setting. Is it possible to change the GPIO state on the software/OS side?

0 · Share on Facebook

Answers

  • camillus
    camillus AAEON Posts: 188 mod
    September 2021

    Hi @nhattan,

    Yes it is possible. Kindly go through the guide in the links below.

    https://github.com/up-board/up-community/wiki/Ubuntu_18.04#install-ubuntu-kernel-540-from-ppa-on-ubuntu-1804
    https://github.com/up-board/up-community/wiki/Ubuntu_18.04#install-upboard-extras
    https://github.com/up-board/up-community/wiki/Ubuntu_18.04#enable-the-hat-functionality-from-userspace
    https://github.com/up-board/up-community/wiki/Ubuntu_18.04#add-groups

    https://github.com/up-board/up-community/wiki/Pinout_UP2#gpio

    Best Regards,

    0 · Share on Facebook

Categories

  • All Categories
  • 77 Announcements & News
  • 3.5K UP Product Related Discussions
  • 34 Frequently Asked Questions (FAQ)
  • 62 Product News - New Product/Product Change Notice/ End-of-life
  • 3 UP Challenges & Contests
  • 26 Tech Updates
  • 46 Unboxing & Project Sharing
  • 104 Welcome Developers!
Privacy Policy