ARM Technical Support Knowledge Articles

Why am I getting linker errors when building standalone assembly with MDK-ARM?

Applies to: University Program


The some older versions of MDK-ARM require a Reset handler to be found by the scatter file (either the default scatter file or a programmer-defined one).  Keil's provided startup files provide a Reset handler, but if you do not wish to use a startup file for simple assembly programming, the workaround is to mark an assembly function as the Reset handler and declare it globally, like so:

          GLOBAL Reset_Handler
          AREA reset, CODE, READONLY

          ADD r0, r1, r2
          SUB r2, r3, r4

Article last edited on: 2011-02-11 21:51:46

Rate this article

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