Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » SDCC
  • » [Sdcc-user] How to define DSEG length ? ASlink error [RSS Feed]

#1 Jan. 10, 2011 10:21:11

Vaclav P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Sdcc-user] How to define DSEG length ? ASlink error


Hello all,
I tried very simple project with two files for HC08 port. In main.c there is
main() which calls func1() from func.c.

In func.lst there is following:
56
;--------------------------------------------------------
57 ; ram data
58
;--------------------------------------------------------
59 .area DSEG
0000 60 _main_sloc0_1_0:
0000 61 .ds 1
0001 62 _main_sloc1_1_0:
0001 63 .ds 2

This lines cause me the error message below:
D:\V\hc08_multifile>sdld -pf main
-myuxs
-Y
-b HOME = 0xE000
-b DSEG = 0x0080
-b BSEG = 0x0000
-k d:\v\sw\sdcc\lib\hc08
-k d:\v\sw\sdcc\bin\..\lib\hc08
-l hc08
main.rel
func.rel

?ASlink-Error-Could not get 3 consecutive bytes in internal RAM for area DSEG.

Does anybody know how to properly set the linker script ?

Thank you,
Vasek


Sdcc-user mailing list
Sdcc-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sdcc-user

Offline

  • Root
  • » SDCC
  • » [Sdcc-user] How to define DSEG length ? ASlink error [RSS Feed]

Board footer

Moderator control

Enjoy the 21st of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support