[En-Nut-Discussion] SPI DMA with AT91SAM7x256

Eric Haver havereric1 at gmail.com
Tue May 27 01:38:03 CEST 2008


Hi ajitn,

Here is an excerpt from my make file,
Note:ih_at91spi0.c near the end.

I had to copy it to my work directory because it is not included in the
library for sam7x.  It works fine.



SRCS +=  IQenet.c \
         IQHelpers.c \
         IQheatcool.c \
         IQeditors.c \
         IQcrc8.c \
         IQmisc.c \
         IQio.c \
         IQui.c \
         IQnvdata.c \
         IQdisplay.c \
         IQtimer.c \
         IQtemperature.c \
         IQtemperature_lookup.c \
         usart1at91.c \
         IQcom1_drv.c \
         wdt_at91.c \
         adc.c \
         IQmain.c \
         httpd.c \
         sendmail.c \
         sendbase64.c \
         ftpd.c \
         mkfs.c \
         at45db.c \
         ih_at91spi0.c \
         DFcard.c

On Mon, May 26, 2008 at 12:51 PM, Ajit Narayanan <ajitn at inventionlabs.in>
wrote:

> Hi all,
>
> I've been trying to use DMA with SPI with Ethernut 4.4.1 on
> AT91SAM7x256-EK and I am facing a problem.
>
> The interrupt handlers, ih_at91spi0.c and ih_at91spi1.c, are not included
> in the make process. Since sig_SPI0 and sig_SPI1 are defined in these
> files, I get a linker error if I use SPI functionality.
>
> I tried modifying the Makefile in the nut/arch folder, to place the ih_
> files under ifeq ($(DEVICE), AT91SAM7X256) conditional.
>
> When I run Configurator, I find that this nonetheless has no effect on the
> Makefile in the bld/arch folder, and the nutarch library does not contain
> the ih_ functionality.
>
> This is a little puzzling to me. Can anyone help me understand what's
> going on, and how to use SPI DMA mode?
>
> Best wishes,
> Ajit
>
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>



More information about the En-Nut-Discussion mailing list