Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[Problem]IAR C for AVR

Status
Not open for further replies.

Nicholas

Member level 4
Joined
Feb 21, 2004
Messages
77
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
711
iar error[e16]

While making a program for ATtiny13 in IAR EWB 4.20A for AVR, I always get this msg out. What am I going to do ????? see below, help, thanks!!

Rebuilding configuration: BL - Release

0 file(s) deleted.
main.c
Linking
Error[e16]: Segment RSTACK (size: 0x20 align: 0) is too long for segment definition. At least 0x5 more bytes needed. The problem occurred while
processing the segment placement command "-Z(DATA)RSTACK+_..X_RSTACK_SIZE=_..X_RSTACK_BASE-_..X_RSTACK_END", where at the
moment of placement the available memory ranges were "DATA:85-9f"
Reserved ranges relevant to this placement:
DATA:60-64 TINY_Z
DATA:65-84 CSTACK
DATA:85-9f RSTACK

Total number of errors: 1
Total number of warnings: 0
 

iar rstack cstack

I don't have the AVR compiler in front of me but from the error message I would say you need to expand RSTACK. change it from 9F A9 and you should be ok.
 

avr check rstack

This is a typical configuration trouble. Check in project options and set correcty the parameters like cpu, memory model, etc.

Gorkin.
 

iar cstack rstack heap

If possible decrease Heap and CSTACK sizes and add it to RSTACK.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top