public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* tx39 simulator timer questions
@ 2000-12-11 13:27 Joel Sherrill
  2000-12-13  7:26 ` Frank Ch. Eigler
  2005-09-06 19:36 ` Failed to build GDB-5.0 Laxman Bana
  0 siblings, 2 replies; 7+ messages in thread
From: Joel Sherrill @ 2000-12-11 13:27 UTC (permalink / raw)
  To: gdb, newlib, crossgcc

Hi,

I hate to crosspost like this but I need to find someone who is
knowledgeable about the TX3904 and/or its simulator in gdb.  

I now have a simple RTEMS board support package (supports hello world)
running on it.  I want to use one of the 3 timers in interval mode 
to generate a clock tick. 

But between an error reading the PDF Toshiba documentation :)
and the simulator, I am confused about the requirements/sequence 
to make the timer do this.  Comments in dv-tx3904tmr.c indicate
that it does not support level triggered interrupts.

So far I have this as initialization:

  ILR3 = 0x00000700;  make timer0 level 7
  CCDR = 0x3;         divide by 16
  CPRA = <clicks>;    value in compare register
  TISR = 0x00;        clear all pending interrupts
  TCR  = 0xC0;        interval mode, internal system clock, enabled
  ITMR = 0x8001;      enable it, make it periodic

I think I may need to also deal with the CConR register.

??? What is the simulated clock speed when --board=jmr3904???
It is hard to know what is a meaningful value for CPRA.

I have tried to enable debug in the simulator (configured
with --enable-sim-debug) to see more of what was happening
but that resulted in gdb 5.0 not building.

Advice on the tx39 and/or the simulator is appreciated.

Thanks.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-09-06 23:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-11 13:27 tx39 simulator timer questions Joel Sherrill
2000-12-13  7:26 ` Frank Ch. Eigler
2000-12-13  9:04   ` Joel Sherrill
2000-12-13  9:17     ` Frank Ch. Eigler
2005-09-06 19:36 ` Failed to build GDB-5.0 Laxman Bana
2005-09-06 19:45   ` Daniel Jacobowitz
2005-09-06 23:40   ` Laxman Bana

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).