External stack used by default

Technical Note 98758






5/31/2018 9:14 AM


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:


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.


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.