public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] CAN-problems
@ 2008-12-22 22:47 Peter Last NameHuszar
  2008-12-22 23:01 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Last NameHuszar @ 2008-12-22 22:47 UTC (permalink / raw)
  To: ecos-discuss

I have just started to use eCOS for an Olimex LCP-H2294.
The basic setup works, I could flash led as a thread, using Redboot ROM monitor,
but ran into problem when adding CAN support.

I modified the ecos.db to include the generic CAN device driver and the LPC2xxx
specific CAN device driver.

First of all, in "I/O subsystem/CAN device drivers/Philips LPC2xxx CAN.."
set up the  "Allow Access to the on-chip CAN 0 .." is selected, but grey.

More importantly some defines are not set properly e.g. CYGINT_IO_CAN_CHANNELS
does not seem to have the proper count.

Since I am a novice with eCOS, I might be doing something simple the wrong way.

I have not found any solution for my problem in the archives. Would appreciate some
 help.

Rgds,

Peter





      





--
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] CAN-problems
  2008-12-22 22:47 [ECOS] CAN-problems Peter Last NameHuszar
@ 2008-12-22 23:01 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2008-12-22 23:01 UTC (permalink / raw)
  To: Peter Last NameHuszar; +Cc: ecos-discuss

On Mon, Dec 22, 2008 at 02:25:18PM -0800, Peter Last NameHuszar wrote:
> I have just started to use eCOS for an Olimex LCP-H2294.
> The basic setup works, I could flash led as a thread, using Redboot ROM monitor,
> but ran into problem when adding CAN support.
> 
> I modified the ecos.db to include the generic CAN device driver and the LPC2xxx
> specific CAN device driver.
> 
> First of all, in "I/O subsystem/CAN device drivers/Philips LPC2xxx CAN.."
> set up the? "Allow Access to the on-chip CAN 0 .." is selected, but grey.
> 
> More importantly some defines are not set properly e.g. CYGINT_IO_CAN_CHANNELS
> does not seem to have the proper count.
> 
> Since I am a novice with eCOS, I might be doing something simple the wrong way.
> 
> I have not found any solution for my problem in the archives. Would appreciate some
>  help.

Take a look at:
 packages/hal/arm/lpc24xx/ea2468/current/cdl/hal_arm_lpc24xx_ea2468.cdl

See how it has statements:

    implements    CYGINT_DEVS_CAN_LPC2XXX_CAN0
    implements    CYGINT_DEVS_CAN_LPC2XXX_CAN1


You need something similar in the Olimex LCP-H2294 HAL so that the CAN
device driver knows which CAN devices the chip supports.

       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:[~2008-12-22 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-22 22:47 [ECOS] CAN-problems Peter Last NameHuszar
2008-12-22 23:01 ` 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).