External stack used by default

Technical Note 98758

Architectures:

AVR

Component:

linker

Updated:

5/31/2018 9:14 AM

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.

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.