Closed htot closed 7 years ago
I'm travelling right now, so, let me check this lately. Pay attention that EOL is defined for the Edison, so, this kind of tasks now are at lowest priority.
Yes, the EOL for the boards (breakout/arduino) doesn't surprise me, but for the compute module and no alternative announced really pisses me off.
The problem in the end was caused by my script where I had disabled the final TRI_STATE_ALL = high (due to enumeration problems I had earlier).
Note to self:
TRI_STATE_ALL controls the INH pin on the 74LVC2G53 analog multiplexers, but also cuts power to the 74LVC1T45 level translators (by the V_SHIELD_SW signal, a global, and if I may say so, the use of globals in schematics is just as despicable as in software). So effectively by default all analog/digital pin are tri-stated (as the signal name already says).
So it is really important to enable TRI_STATE_ALL like so (f.i.):
# TRI_STATE_ALL signal is controlled by GPIO 214
echo 214 > /sys/class/gpio/export
echo high > /sys/class/gpio/gpio214/direction
I have tried this with
screen /dev/ttyS1 115200
(running on edison) and with a small program that writes 65 bytes out and reads back whatever is in the buffer (currently read exactly 0 bytes). I have RX and TX looped back of course.External driver direction set with:
I can not set direction on 130/131 as that claims them for gpio, so I assume hsu driver take care of pinctrl and pinmux (once claimed I don't know how to release back to hsu, except by reboot).
Of course ttyS2 is used for the console and works fine. According to:
all should be in mode 1, however there is a difference in the other bits.
What am I doing wrong here?