Other tests: i compiled a debug version of the OS.
If i call:
SetSystemPowerState (NULL, POWER_STATE_RESET, 0 );
in Release mode i see nothing but in Debug i got a crash the following debug
output:
135325 PID:400002 TID:3b00012 FS: Got Power notif 0x00000002
135336 PID:400002 TID:3b00012 FSREG: Flushing registry
135336 PID:400002 TID:3b00012 FSRAM: Flushing cached file data
135336 PID:400002 TID:3b00012 Powering Off system:
135336 PID:400002 TID:3b00012 Calling GWES power proc.
135336 PID:400002 TID:3b00012 Calling device manager power proc.
135336 PID:400002 TID:3b00012 Calling OEMPowerOff...
The crash is into the function OALI2cEnable ?!?!?!?
If i call
ret = KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);
57895 PID:3a90012 TID:3ab0012 rebooting... ...
57895 PID:3a90012 TID:3ab0012 KernelIoControl returns 0
and nothing happens and the application stays there ...
Then i'm not so sure that the code in the OAL is compiled in the image.
--
SteM
Post by SteMNo, my BSP doesn't have the file .. but none of the BSP i have (under
PLATFORM) have it !!
KernelIoControl always return 0.
I'm trying with SetSystemPowerState(...) but the only thing i see is the
WinCE Sync item on the DeviceManager that disappear.
The screen (nad the board) is not resetting.
--
SteM
Post by Bill TCheck to see if your BSP has a oalioctl.cpp file or similar and if the
IOControl() function passes the IOCTL_HAL_REBOOT ioctl through.
Post by SteMI'm using WinCE6.00 R2.
I'm compiling my own image but it is cloned from the Freescale one.
I checked into the _SOCDIR folder and i found a file called reboot.c
and
Post by SteMit
Post by Bill TPost by SteMcontains a function named OALIoctlHalReboot that should be the
IOCTL_HAL_REBOOT handler ...
--
SteM
Post by Bill TIt depends. What version of CE are you using and are you building
your
Post by Bill TPost by SteMimage
Post by Bill Tor using one provided by the hardware vendor?
Post by SteMHi all,
i need to reset the board from my application.
KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);
but nothin happens.
Do i need something else ???
----
SteM
.