cancel
Showing results for 
Search instead for 
Did you mean: 

ASM, error on copy segment 'code>ram'

flankerus
Associate II

I'm trying to compile an example from "ST Aseembler Linker", Chapter 4.4 "Segmentation"

stm8/
	segment byte at: 0 'code'
	segment byte at: 8000 'ram'
	segment 'ram>code'
	
label1: nop
	
	end

and i get the following error:

Error in map file Debug\00_test.map: wrong map file format: can't find segment type!

 The command: "abslist Debug\main.lsr -exe Debug\00_test.s19" has failed, the returned value is: 1

exit code=1.

file 00_test.map has next contains:

Segment List
------------
 
c:\users\flanker\documents\stvd\00_test\main.asm[3]    4-    7         0 -        0                 'code'
c:\users\flanker\documents\stvd\00_test\main.asm[4]    4-    7      8000 -     8000                 'ram'  [text]
 
 
Class List
----------
 
0 '        code'   byte from        0 to        0 (lim FFFFFFFF) =  0% D
0 '         ram'   byte from     8000 to     8000 (lim FFFFFFFF) =  0% C
 
 
 
External Label list
-------------------
 
Symbol Name                       Value     Scope  Def(line)
 
 
0 labels

What am I doing wrong?

Thanks!

0 REPLIES 0