[ECOS] Bootup and Redboot

Satish Kumar satish@bvt.sc.sanyo.co.jp
Wed Oct 29 10:08:00 GMT 2003


For every RTC interrupt generated ; is the ISR routine called ..? put a
break point in the ISR routine and check what happens there after..
generally DSR routines are followed by ISR routines, so when ur DSR
routine is called, the ticks are initialised and u can get ur schedular
running, else the tick is always zero, and ur code hangs after that..

  if ur DSR routines are not called, check with ur hal_clock_xxxx
routines..in ur target_misc.c file..may be u have to recheck ur
intialisation procedure.

satish

On Wed, 29 Oct 2003 09:59:36 -0000
"James Yates" <j.yates@quartzuk.com> wrote:

> I am currently trying to get a custom board up and running with eCos and I am have hit a brick wall. It seems that as soon as the scheduler is started and interrupts are enabled, and the installed RTC causes and Interrupt, and exception is raised and the code dies. I believe the problem is with the Vector table/VSR table but can't figure out why.
> 
> I assume that the each entry in the Vector table, the entry point for each available ISR, should point to the default VSR handler which then looks up to see if an interrupt has been attached to this and if so then call the relevant ISR.
> I am not running Redboot since I am required to use a custom bootloader. Am I right in saying that Redboot sets up the Vector table correctlt and so my bootloader should do the same. On startup, before the scheduler is started, I print out the vector table pointed to by the VBR.
> The first 32 entries correctly point at the default_exception_vsr but the entries for peripheral Interrupts don't seem to point to anything valid. So I initialise as part of the platform init these entries to point to the default VSR handler. Is this correct? I am really stuck and don't know where to go from here.  This is running on an SH2 platform.
> 
> 
> 		I will be very gratefuly for any help.
> 
> 
> 				James Yates
> 
> -- 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss

-- 
Satish Kumar <satish@bvt.sc.sanyo.co.jp>


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list