Re: SPI send data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxxxx
>
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



[Index of Archives]     [Linux Embedded]     [U-Boot V2]     [Linux Kernel]     [Linux MIPS]     [Linux ARM]     [Linux for the Blind]     [Linux Resources]     [Photo]     [Yosemite]     [ISDN Cause Codes]     [eCos Home]

  Powered by Linux