[ECOS] HAL_PLATFORM_RESET
Jonathan Larmour
jifl@eCosCentric.com
Thu Oct 24 21:54:00 GMT 2002
Gary Thomas wrote:
> On Thu, 2002-10-24 at 14:12, Tim Drury wrote:
>
>>I'm still trying to get my board to return to a reset
>>(or redboot) state after running a test instead of
>>looping forever inside cyg_test_exit(). The macro
>>to reset the board, HAL_PLATFORM_RESET, is not
>>defined for my ARM eb40a. What would be the
>>best way to define it? Jump to the reset vector?
>>Call cyg_start()?
>
>
> Jumping to the reset vector would be the first thing to try.
Or it may be a little better to call CYGACC_CALL_IF_RESET(); from
<cyg/hal/hal_if.h> which should always use the right reset mechanism
if it exists, or entry point in the worst case.
Another way to automatically reboot is to do something like set a
breakpoint on cyg_test_exit, and when it is hit go:
maintenance packet r
detach (or quit)
That also uses the stuff from hal_if.h.
Jifl
--
eCosCentric http://www.eCosCentric.com/ <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
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