Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GPIO on C2 - slow access?

Featured Replies

Hi,

after getting access to GPIO pins now (thnx to Neil :) ) I wonder that accessing pins be bash scripts gives me quite different access times.

For example, I use one pin to switch a connected device on and off by a MOSFET.  Setting the pin low is fast, setting it high takes about two seconds.

I use the following shell script:

#!/bin/bash
echo "0" > /sys/class/gpio/gpio102/value

("0" for off, "1" for on)

 

Any ideas? The pin seems to switch immediately, while the shell prompt takes about two seconds to return - but ONLY in case of "1".

The corresponding pin is set to output, of course, before :)

 

Best regards, Michael

 

EDIT: problem solved. It was power supply related... the +5V line received a voltage drop when the FPGA was booting up. That drop killed the USB network connection, and the reconnection did cause the long delay.

 

  • Author

It was a really hard to track issue: we operate the Odroid and the FPGA from one single 48V/5V DC/DC. The FPGA is powered off while booting, and connected to the GbE port of Odroid. External link is done by USB ethernet.

When powering up the FPGA (by GPIO pin and FET), there was a voltage drop on 5V output of DC/DC due to inrush currents while FPGA memory was not yet cleared.

That voltage dip made the USB ethernet disconnect and (usually) reconnect at once again, so it caused some small delay in the shell.

Changing configuration to have the readout software running increased current consumption, and the USB ethernet just disconnected and stayed in an intermediate condition (not reconnecting to USB, but building up a link on ethernet)....

simply adding three passive components to the FET fixed it (turning it into an inrush current limiter :) )

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.