ARM Technical Support Knowledge Articles

PERFORMING A SOFTWARE RESET

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

How can I force the C compiler to generate a jump to 0000H in order to perform a software reset?

ANSWER

The following line of code will do the trick:

((void (code *)(void)) 0) ();

This generates:

LCALL   0000h

SEE ALSO

Article last edited on: 2002-12-02 00:00:00

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential