Keil Logo Arm Logo

Discussion Forum

Error when assembling

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Nuno Gonçalves
Posted
19-Jan-2005 13:50 GMT
Toolset
C51
New! Error when assembling
I'm trying to build my assembly program to the DS80C400 at Keil uVision2...everthing was ok until I try to change the program start from ORG 000000H to ORG 010000H...now, when I try to build the hex file I receive this error:

Build target 'Target 1'
assembling NACSYSsource.a51...
linking...
*** ERROR L107: ADDRESS SPACE OVERFLOW
   SPACE:   CODE
   SEGMENT: ?CO?NACSYSSOURCE?0
   LENGTH:  0105A2H
*** ERROR L120: CONTENT BELONGS TO ERRONEOUS SEGMENT
   SEGMENT: ?CO?NACSYSSOURCE?0
Program Size: data=8.0 xdata=0 const=0 code=66978
Target not created



My program size is under 2K and I've the 16MB contiguous memory model selected at Project -> Options for target...
Read-Only
Author
erik malund
Posted
19-Jan-2005 14:05 GMT
Toolset
C51
New! RE: Error when assembling
LENGTH: 0105A2H

something screwy, have a look at the .lst of the module
Read-Only
Author
Nuno Gonçalves
Posted
19-Jan-2005 14:12 GMT
Toolset
C51
New! RE: Error when assembling
?
I can't assemble it so I just have the .lst from when I used the ORG 000000H. why can't I start my program at 01 00 00H?
Read-Only
Author
Matthias Hertel
Posted
19-Jan-2005 14:53 GMT
Toolset
C51
New! RE: Error when assembling
I can't assemble it so I just have the .lst from when I used the ORG 000000H. why can't I start my program at 01 00 00H?

It looks like there is no problem with assembling. Which memory areas did you specify for the linker?
Read-Only
Author
Hans-Bernhard Broeker
Posted
19-Jan-2005 14:17 GMT
Toolset
C51
New! RE: Error when assembling
The problem may well be that you tried to use class "CODE" for this --- continguous mode code segments should be in class "ECODE".
Read-Only
Author
Nuno Gonçalves
Posted
19-Jan-2005 14:24 GMT
Toolset
C51
New! RE: Error when assembling
How and where can I select this?
Thanks,
Read-Only
Author
Hans-Bernhard Broeker
Posted
19-Jan-2005 15:03 GMT
Toolset
C51
New! RE: Error when assembling
In the SEGMENT statement in your .a51 file, of course.
Read-Only
Author
Nuno Gonçalves
Posted
19-Jan-2005 15:10 GMT
Toolset
C51
New! RE: Error when assembling
I don't have and don't know how to use such thing. I only use the ORG directive, and I can't find how to use this segment directive.

Thanks
Read-Only
Author
erik malund
Posted
19-Jan-2005 15:28 GMT
Toolset
C51
New! RE: Error when assembling
I don't have and don't know how to use such thing

Then go back to basics and learn how to program assembly. How can you ask about a problem in a module, if you do not know how to make one?

Erik
Read-Only
Author
Nuno Gonçalves
Posted
19-Jan-2005 15:48 GMT
Toolset
C51
New! RE: Error when assembling
sometimes, when we never had any lessons about that we start making programs without using all that things, until now I never had this kind of problems, just I tried to use expanded adress system.

Thanks anyway,
Nuno

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.