public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: James Yates <j.yates@quartzuk.com>
Cc: "Ecos Discuss (E-mail)" <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] Real Time Clock
Date: Thu, 23 Oct 2003 12:03:00 -0000	[thread overview]
Message-ID: <1066910603.29481.351.camel@hermes> (raw)
In-Reply-To: <CB39E7B8FC98924D85DFBED207E4CC9834421B@ip02.quartzelec.adsl.gxn.net>

On Thu, 2003-10-23 at 05:44, James Yates wrote:
> I have a platform which when boots, copies code that was placed to be run from RAM, from a flash device to the correct location in RAM. The VBR is then modified correctly and a jump is made to the first address contained in the first entry of the vector table.
> 
> The app I have built which I store in flash is a simple eCos app consisting of 2 threads and I am trying to get timeslicing working. I am a bit unsure of the build options I should set since although this is running from RAM it is not running through a debug stub or rom monitor.
> 
> Should I disable all ROM Monitor Support in this case and link it as if it was to be placed in ROM but modify the corresponding memory layouts to actualy place it in RAM? This is a bit of a special scenario for eCos but unfortunately I have to build it this way.
> I seem to get an exception when the scheduler is started, I think the RTC is getting an interrupt but the VSR doesn't have an entry in. So when the interrupt happens, it atempts to jump to a routine that doesn't exist. Provided the HAL_CLOCK_INITIALIZE, HAL_CLOCK_RESET, HAL_CLOCK_VAR_INITIALIZE and HAL_CLOCK_READ macros are valid, should the realtime clock code in the kernel handle everything else for me or do I need to make any special calls to setup the RTC isr?

If you don't have an [eCos compatible] ROM monitor running, then
set your application thusly.  Make sure that CYGSEM_HAL_USE_ROM_MONITOR
is not set and it should take over everything, including all of the
interrupt & exception processing.  This is invariant of the ROM/RAM
startup type setting (although RAM mode often implies USE_ROM_MONITOR)

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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

  reply	other threads:[~2003-10-23 12:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-23 11:42 James Yates
2003-10-23 12:03 ` Gary Thomas [this message]
2015-12-17 10:32 Privat
2015-12-17 11:15 ` Ilija Kocho [Илија Кочо]
2015-12-17 11:17   ` Privat
2016-01-01 18:00 ` Jonathan Larmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1066910603.29481.351.camel@hermes \
    --to=gary@mlbassoc.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=j.yates@quartzuk.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).