Hello,
I've finally found some time to work with my thunderpack and my first
objective is to interface it to some basic hardware (uC, sensors...).
I've read the note on
www.technexion.org regarding the GPIO, so I
downloaded the source tar, the SourceryG++ toolchain and crosscompiled
u-boot to enable CAM_D1 to be used as GPIO100, with thunder.h modified
like this :
MUX_VAL(CP(CAM_D1), (IEN | PTD | DIS | M4)) /*GPIO_100, NOT(CAM_D1)*/
\
I then booted the last binary image for the thunder and replaced the u-
boot.bin with my new_one. BTW, shouldn't be the source and the binary
from the same release ? The source is older, that could be
problematic, no ?
Seeing everything booted fine, i went to /sys/class and did this :
echo "100" > export
cd gpio100
echo "out" > direction
echo "1" > value
echo "0" > value
But the voltage on GPIO100 (==CAM_D1, pin 4 on the expansion header)
didn't reflect those changes...
Perhaps I should give a pin number to export, and not the GPIO
reference... Does anybody know where can I find this information ?
Another question : I found I2C3 and UART1 in the thunder.h, but not
SPI3, which yet seems to be exposed on the expansion header... is it
normal ?
Thanks in advance for your help !
Have fun.
Nicolas.