* [ECOS] FW: [ECOS] Spi enable problem
@ 2007-08-22 10:32 sandip
2007-08-22 11:10 ` Andrew Lunn
0 siblings, 1 reply; 2+ messages in thread
From: sandip @ 2007-08-22 10:32 UTC (permalink / raw)
To: ecos-discuss
Dear Andrew
As you told I change ecos.db and after it I am going to open ecos
configuration tools so SPI support is enable but when I build librart I got
error
/ecos-c/cygwin/ecos/packages/devs/spi/arm/at91/current/src/spi_at91.c:556:53
: unterminated argument list invoking macro "HAL_WRITE_UINT32"
make[1]: *** [src/spi_at91.o.d] Error 1
make: Leaving directory `/ecos-c/cygwin/ecos/app7/serial_build'
make: *** [build] Error 2
Making this change to your ecos.db:
target at91sam7xek {
alias { "Atmel AT91SAM7XEK evaluation board" at91_at91sam7xek }
packages { CYGPKG_HAL_ARM
CYGPKG_HAL_ARM_AT91
CYGPKG_HAL_ARM_AT91SAM7
CYGPKG_HAL_ARM_AT91SAM7XEK
CYGPKG_IO_SERIAL_ARM_AT91
CYGPKG_DEVS_FLASH_AT91
CYGPKG_IO_SPI
CYGPKG_DEVS_SPI_ARM_AT91
CYGPKG_DEVICES_WATCHDOG_ARM_AT91WDTC
CYGPKG_IO_USB
CYGPKG_IO_USB_SLAVE
CYGPKG_DEVS_USB_AT91
CYGPKG_DEVS_ETH_PHY
CYGPKG_DEVS_ETH_ARM_AT91
CYGPKG_
}
description "
The at91sam7xek target provides the packages needed to run eCos on
an
Atmel AT91SAM7X-EK evaluation board."
}
-------------------------------------------------------
Masibus Process Instruments (P) Ltd, Gandhinagar, India
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] FW: [ECOS] Spi enable problem
2007-08-22 10:32 [ECOS] FW: [ECOS] Spi enable problem sandip
@ 2007-08-22 11:10 ` Andrew Lunn
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2007-08-22 11:10 UTC (permalink / raw)
To: sandip; +Cc: ecos-discuss
On Wed, Aug 22, 2007 at 03:57:44PM +0530, sandip wrote:
>
> Dear Andrew
>
> As you told I change ecos.db and after it I am going to open ecos
> configuration tools so SPI support is enable but when I build librart I got
> error
>
> /ecos-c/cygwin/ecos/packages/devs/spi/arm/at91/current/src/spi_at91.c:556:53
> : unterminated argument list invoking macro "HAL_WRITE_UINT32"
> make[1]: *** [src/spi_at91.o.d] Error 1
> make: Leaving directory `/ecos-c/cygwin/ecos/app7/serial_build'
> make: *** [build] Error 2
> Making this change to your ecos.db:
553 HAL_WRITE_UINT32(spi_bus->base+AT91_SPI_MR, val);
554 } else {
555 val = AT91_SPI_MR_MSTR;
556 #ifdef AT91_SPI_MR_MODFDIS
557 val |= AT91_SPI_MR_MODFDIS;
558 #endif
559 HAL_WRITE_UINT32(spi_bus->base+AT91_SPI_MR, val);
560 }
561 }
I don't see how you can get that error from line 556.
You need to debug your version of the code, since i think it is
different from the one, true eCos version, in anoncvs.
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-22 11:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-22 10:32 [ECOS] FW: [ECOS] Spi enable problem sandip
2007-08-22 11:10 ` Andrew Lunn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).