This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE?: [ECOS] Does AT91 SPI driver support external SPI devices?
- From: Julien Stéphane <Stephane dot Julien at he-arc dot ch>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 28 Feb 2007 16:06:40 +0100
- Subject: [ECOS] RE?: [ECOS] Does AT91 SPI driver support external SPI devices?
- References: <F7620004260C5D4DB836EDBF8CC6872D028943B5@neptune.intra.eiaj.ch> <F7620004260C5D4DB836EDBF8CC6872D028943B6@neptune.intra.eiaj.ch> <20070228144319.GC24209@lunn.ch> <F7620004260C5D4DB836EDBF8CC6872D028943B7@neptune.intra.eiaj.ch>
Thank you for your help!
Indeed, I didn't checked the pins in CDL. So I use the default values : AT91_SPI_NPCS0, AT91_SPI_NPCS1, AT91_SPI_NPCS2, AT91_SPI_NPCS3. Is it correct or do I havt to chage it?
On my AT91 board, I connected the scope to the pins MOSI-GND and SCLK-GND, nothing on the analyzer. To check if a chip select was enabled, i measured voltage between GND and NSPICS5-8 and no CS were enabled. Nevertheless, I set the dev_num value of the cyg_spi_at91_device_t structure to the value 4-8. All voltages are to 3.3V and no CS is to 0V.
> O.K. Lets start with a silly question. Are you sure you are looking at
> the correct pins. The pins used for NPCS are configurable by CDL. On
> most AT91 devices, the peripheral devices can select between multiple
> pins on the chip. Which pins do you have you logic analyze connected
> to? Which pins is the SPI device driver using?
>
> Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss