[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Implementing SPI
- To: microblaze-uclinux@xxxxxxxxxxxxxx
- Subject: [microblaze-uclinux] Implementing SPI
- From: "Alex D." <alex.diaz8@xxxxxxxxx>
- Date: Sun, 2 Nov 2008 02:07:18 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=MXVioTlT1sN1A5EajAxaAxH/1SM4WLRQw9VC8ft97ps=; b=U2UjhOXLuo2SCIsUUG8a9JRLxOkvgsE0bbC25W9oh1L3li+H+6dxlmUMOJuDp+slg2 AgqJnTFKrTcWe7PAl1Nkcco6YoPlOgOj1lypFmxL6LaPBeLL/LcqDnaidhdL7rrWC8Z6 BhGrWD49MwHZ7cQkLlZzTmHSxvfWtT+QBUFuM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Bf0hT9ckhOi2xB9sjxtmlqSWqBLC5rh4AK0aSsG/iSwZvA+xUdprXqZK50nL87gpTe elm71PQOHhigUrqvF1gOdd1zRLH+nDI2lHAwTcM5t2L4O86SZ8WZF699Nd+f36tz3Wn/ mAEbCux6s/j8OR1FfpwT9HehOBIXCER2B8K5Q=
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxx
Hello all,
I am a student currently tasked with implementing an
SPI to eventually talk with a DAC and possibly other hardware. I'm
using a spartan-3e500-revD board and have managed to install petalinux
into flash and have it boot up properly. I've also tested a few user
apps that interface with the DIP switches and LED's via the GPIO char
driver.
During the kernel setup I noticed that there is also a char driver
for the SPI, similar to the GPIO drivers I presume. When I go into EDK
and ad an SPI IP core to the reference design I get a a few errors
however. They crop up during the "Generate Bitstream" process. I keep
gettings errors with the ucf file voltage levels for the pins
(MOSI,SS,SCK) as well as "PAD sharing" with the flash. I've read that
some of the pins for the SPI are shared with other devices including
the flash. Also, when I simply leave out the MISO pin, sometimes EDK
builds the hardware correctly. However when I boot into uclinux I get
the following error in the log:
xilinx_spi #0: IO resource(s) not found
xilinx_spi: probe of xilinx_spi.0 failed with error -14
I have a few questions:
Is it possible to use the SPI IP core and Flash at the same time?
If so how do I go about building the hardware?
I basically need to get an SPI set up. If i'm going about it the wrong way I'd appreciate any advice.
-alex