how to add External RTC on WinCE 5.0



I am working on handheld device based on mainstoneII . PXA27x is the
processor,
which runs on WinCE 5.0. I going to use an external RTC chip instead
of the inbuilt one.
To implement this i have edited source code in WINCE500\PLATFORM\COMMON
\SRC\ARM\INTEL\PXA27X\RTC\rtc.c.
I am using OEMSetREalTime and GetRealTime functions to get and set
values to SYSTEMTIME structure.I2C is used to transfer time data to
RX8025-SA RTC chip. Is there anything else i need to do to add the
RTC to
image. At present i am getting an exception like
Updated eptr->e32_vsize to = 000a7000
Scheduling the first thread.
0x83fdf024: KernelInit2: pCurThread=83fdf024 hCurThread=03fdf266
hCurProc=03fdf002, KernelInit = 80125668
0x83fdf024: Detecting VFP...0x83fdf024: VFP Not Found!
0x83fdf024: Updated eptr->e32_vsize to = 00006000
0x83fdf024: Updated eptr->e32_vsize to = 00029000
0x83fdf024: Updated eptr->e32_vsize to = 00009000
0x83fdf024: Updated eptr->e32_vsize to = 00022000
0x83fdf024: ERROR: c:\macallan\private\winceos\coreos\nk\kernel
\kwin32.c line 777: 0x83fdf024: ConnectDebugger failed
0x83fdf024: first = 01df0000, last = 02000000, SharedDllBase =
024e0000
0x83fdf024: OEMIoControl: Unsupported Code 0x10100b4 - device 0x0101
func 45
0x83fdf024: Data Abort: Thread=83fdf024 Proc=81ca6600 'NK.EXE'
0x83fdf024: AKY=ffffffff PC=8019ee60(NK.EXE+0x0009ee60)
RA=8019f098(NK.EXE+0x0009f098) BVA=c2000010 FSR=00000007
0x83fdf024: NKDispatchException: returning failure. Flags=0
0x83fdf024:
Unhandled exception c0000005:
0x83fdf024: Terminating thread 83fdf024
0x83fdf024: Secondary thread in proc 03fdf002 (NK.EXE) faulted!
0x83fdf024: Terminating process 03fdf002 (NK.EXE)!
0x83fdf024: Invalid handle: Set=1 Method=9
0x83fdf024: NK Kernel: DEBUGCHK failed in file c:\macallan\private
\winceos\coreos\nk\kernel\loader.c at line 1982
0x83fdf024: DEBUG_BREAK @80162ac4 MD=1f Ignored.
0x83fdf024: NK Kernel: DEBUGCHK failed in file c:\macallan\private
\winceos\coreos\nk\kernel\loader.c at line 1982
0x83fdf024: DEBUG_BREAK @80162ac4 MD=1f Ignored.
0x83fdf024: NK Kernel: DEBUGCHK failed in file c:\macallan\private
\winceos\coreos\nk\kernel\loader.c at line 1982
0x83fdf024: DEBUG_BREAK @80162ac4 MD=1f Ignored.
0x83fdf024: NK Kernel: DEBUGCHK failed in file c:\macallan\private
\winceos\coreos\nk\kernel\loader.c at line 1982
0x83fdf024: DEBUG_BREAK @80162ac4 MD=1f Ignored.
0x83fdf024: Data Abort: Thread=83fdf024 Proc=81ca6600 'NK.EXE'
0x83fdf024: AKY=ffffffff PC=8018e928(NK.EXE+0x0008e928)
RA=8018e7c4(NK.EXE+0x0008e7c4) BVA=c2000004 FSR=00000007
0x83fdf024: NKDispatchException: no CALLSTACK object to continue...
0x83fdf024:
Unhandled exception c0000005:
0x83fdf024: Exception 'Data Abort' Thread=83fdf024 AKY=ffffffff
PC=000001ff BVA=c2000004
0x83fdf024: R0=a3fd3000 R1=00000000 R2=00000000 R3=c201f9d0
0x83fdf024: R4=80154274 R5=00000000 R6=c2000000 R7=00000000
0x83fdf024: R8=a3fd4000 R9=a3fd4000 R10=000001df R11=00000000
0x83fdf024: R12=c3ffe000 SP=0000000e Lr=00000000 Psr=8000001f
0x83fdf024: Can't terminate thread 83fdf024, sleeping forever
0x83fdf024: ERROR: c:\macallan\private\winceos\coreos\nk\kernel
\schedule.c line 5288: 0x83fdf024: Abandoning CS 81ca6480 in
PuntCritSec
0x83fdf024: NK Kernel: DEBUGCHK failed in file c:\macallan\private
\winceos\coreos\nk\kernel\arm\mdarm.c at line 1086
0x83fdf024: DEBUG_BREAK @80121f50 MD=1f Ignored.
0x83fdf024: NKDispatchException: no CALLSTACK object to continue...

Please help me in this. Thanks in advance

.



Relevant Pages

  • RE: Exception 004, MIPSII, WINCE5.0!!!
    ... > Unhandled exception c0000005: ... > 0x87f72a88: Terminating thread 87f72a88 ... > And then I can not see any debug message from kernel or file system. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: how to add External RTC on WinCE 5.0
    ... I going to use an external RTC chip instead ... Unhandled exception c0000005: ... 0x83fdf024: Terminating thread 83fdf024 ... 0x83fdf024: NK Kernel: DEBUGCHK failed in file c:\macallan\private ...
    (microsoft.public.windowsce.platbuilder)
  • command processor- errors during booting
    ... believe that the kernel is successfully booted up. ... Unhandled exception c000001c: ... 0x817dd000: Terminating thread 817dd000 ... Main thread in proc a17e7fca faulted, ...
    (microsoft.public.windowsce.platbuilder)
  • Can give me any advice?
    ... Jump to kernel start function! ... Unhandled exception c0000005: ... 0x8dfff024: NKDispatchException: no CALLSTACK object to continue... ... Can't terminate thread 8dfff024, ...
    (microsoft.public.windowsce.app.development)
  • There is something wrong but I cant locate it.any help?thx
    ... Jump to kernel start function! ... Unhandled exception c0000005: ... 0x8dfff024: NKDispatchException: no CALLSTACK object to continue... ... Can't terminate thread 8dfff024, ...
    (microsoft.public.windowsce.embedded)

Loading