This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: SPI send data
- From: jayant biswas <biswasj at gmail dot com>
- To: Manuel Borchers <manuel at matronix dot de>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 4 Jul 2011 14:35:42 +0200
- Subject: Re: [ECOS] SPI send data
- References: <BANLkTikmkF7nXX847CWOWGEedk-yrKvQsg@mail.gmail.com> <4DE6749E.8050001@siva.com.mk> <BANLkTik8j0oZ74C-iCCMYBa1RXwunQkqWw@mail.gmail.com> <4E0DF4E5.1040009@siva.com.mk> <CAB1rPRM8=a6SRctqUUC_NtPHMcivspb7B2LFWKx+cQ5dvLxAWw@mail.gmail.com> <CAB1rPRP3okQGCgEZCq3pS=gsc3mGbH1VJwTCmrQ4_TC74ahC8w@mail.gmail.com> <1309773649.2984.4.camel@netxaccos>
Hi Manuel!
Thank you for your suggestion. I looked at this document
http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/REFERENCE_MANUAL/CD00171190.pdf
which suggests that the clock signal may be remapped to PB3 (in
9.3.10). So I plugged check that pin with the logic analyzer as well
and still no clock. I am also attaching my ecos configuration file
with this email. Basically I have only kept SPI1 active.
How can I generate a clock signal on the pin (PA5) which is connected
to my device? And use the ecos spi functions to enable chip select and
transfer data? Is there a sample program which uses the ecos spi
functions to communicate with a device (not just loopback)?
Any advice is helpful.
Thank you,
Jayant Biswas
On Mon, Jul 4, 2011 at 12:00, Manuel Borchers <manuel@matronix.de> wrote:
> Hi Jayant,
>
> Am Montag, den 04.07.2011, 11:47 +0200 schrieb jayant biswas:
>> On Mon, Jul 4, 2011 at 10:36, jayant biswas <biswasj@gmail.com> wrote:
>> > Hi Ilija!
>> >
>> > Thanks again for your reply. The loopback test works when I short the
>> > MISO and MOSI lines. However, I still don't see a clock signal. I have
>> > checked with both a logic analyzer and an oscilloscope. Is it possible
>> > that the loopback test works without the clock signal? Am I correct in
>> > checking pin PA5 for the clock signal?
>> >
>> > Best regards,
>> > Jayant
>
> Actually, the loopback test should work without the clock (as there is
> no real device connected, that would need the clock).
>
> I don't know the eval board and it's default eCos setup, so I can only
> suggest that you should check the SPI remapping configuration (AFIO, see
> STM32F10x Reference manual 8.3.10 and 8.3.11). Maybe the signals are
> being remapped and therefore routed to other GPIOs.
>
> Cheers,
> Manuel
>
> --
> Manuel Borchers
>
> Web: http://www.matronix.de
> eMail: manuel@matronix.de
>
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss