External stack used by default

Technical Note 98758

Targets:
AVR

Component:
Linker

Updated:
8/30/2000 3:21 PM

Introduction

For certain combinations of AVR processor variants and memory models, the .xcl file examples by default use external memory for the stack, by having the following line active:

-e?RSTACK_IN_EXTERNAL_RAM=?C_STARTUP;

This means that calls to "?C_STARTUP" are redirected to "?RSTACK_IN_EXTERNAL_RAM" which is an alternative entry point in cstartup. The effect is that an SFR is set to use certain ports as external address and data bus.

Comments

External RAM is initialized in low_level_init. The activation of this line in the .xcl file is only required if RSTACK is placed in the external RAM.

 

All product names are trademarks or registered trademarks of their respective owners.

Related Tech Notes

© IAR Systems 1995-2016 - All rights reserved.