External stack used by default
Technical Note 98758
Arkitekturer:
AVR
Komponent:
linker
Uppdaterad:
2018-05-31 09:14
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.