ARM Technical Support Knowledge Articles

EXECUTING SPECIAL INSTRUCTIONS IMMEDIATELY AFTER RESET

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I need to add a NOP instruction as the first instruction executed after a reset. How do I do that?

ANSWER

To insert a NOP after reset, you'll have to modify the startup code. There are a few things to note:

To modify the startup code:

  1. Copy the startup code (STARTUP.A51) from the c51lib directory to your project directory.
  2. Edit your project's copy of STARTUP.A51.
  3. Search for CSEG AT 0
  4. Insert the NOP just after the CSEG AT 0 and before the LJMP. (Or change the LJMP to an AJMP if necessary.).

SEE ALSO

Article last edited on: 2005-07-09 11:03:45

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