[beagleboard] Re: Beagleboard xM - SPI

Did you configure buffers?

Thanks for the reply. No I don't know how to do that. Is there any
guide on this or something else?

Direction of buffers is determined by levels on corresponding DIR
pins. Read the buffer IC types from the schematic, find and read their
datasheets, check which GPIOs are connected to DIR pins, configure
them as outputs and set correct logic levels.

j.

I can now understand the whole concept. The last thing I think I need
to know is how to set High or Low the DIR pins. Can this be made
through BeagleBoard with a single command and if it is so, how is this
possible? Thanks!

No, this is one of the most important things to know to get the SPI
working through the TrainerBoard. How to manipulate the GPIOs has been
discussed many times on the list.

j.

For this simple test I need to do, I can see from the schematics that
GPIO_137 controls the SOMI and GPIO_131 controls the SIMO. Is it
enough to set GPIO_131 "high" for MASTER OUT by giving the shell
commands:

echo 131 > /sys/class/gpio/export
echo "high" > /sys/class/gpio131/direction

and GPIO_137 "low" respectively? Thank you!

Not 131. Also, read again how to control GPIOs.

j.

Not 131.

Why not 131? The default direction is from B to A (from Trainer intro
Beagle and not vice versa) considering DIR pins low, so if I make this
pin High the direction shall change right? Is it something wrong with
that?

Not 131. Also, read again how to control GPIOs.

I searched the list and I found out that this is one of the ways to
access GPIOs through shell commands. Where exactly is the error in
this command? Thank you in advance!

Not 131.

Why not 131? The default direction is from B to A (from Trainer intro
Beagle and not vice versa) considering DIR pins low, so if I make this
pin High the direction shall change right? Is it something wrong with
that?

GPIO131 does not control direction of any of the buffers.

Not 131. Also, read again how to control GPIOs.

I searched the list and I found out that this is one of the ways to
access GPIOs through shell commands. Where exactly is the error in
this command? Thank you in advance!

The page with instructions how to control GPIOs on beagleboard is
linked from TrainerBoard's page on elinux.org.
If you want to receive a helpful advice from the group, you should
really put more effort into doing your homework.

j.

OK I figured it out! Sorry it was not 131, after a more clear look I
saw it was 137, however I changed the GPIO level with the manner I
explained and everything worked just fine for me.