m16c linkerproblem

Gast #26140
Lesenswert?
• ▲
▼
hallo,

ich bin schon am verweifeln, weil ich keine lösung für das 
"overlapped"-problem.
die anleitung vom ln30 empfiehlt:
"Relocate the sections so that they will not overlap."
toll, aber wo und wie?

ralf

-----------------------------------------

now processing pass 2
processing ".\uCOS_II.r30"
uCOS-II/SOURCE/os_task.c 292 Error (ln30): .\uCOS_II.r30 : '_memset' 
value is undefined
processing ".\OS_CPU_A.r30"
processing ".\OS_CPU_C.r30"
processing ".\main.r30"
processing ".\ncrt0.r30"
src\sect30.inc 24 Warning (ln30): .\ncrt0.r30 : 'DATA' section 'data_SE' 
is overlapped on the 'program' from 400H to 400H
src\sect30.inc 53 Warning (ln30): .\ncrt0.r30 : 'DATA' section 'stack' 
is overlapped on the 'program' from 41AH to A19H
src\sect30.inc 64 Warning (ln30): .\ncrt0.r30 : 'DATA' section 'heap' is 
overlapped on the 'program' from A1AH to D19H
src\sect30.inc 80 Warning (ln30): .\ncrt0.r30 : 'DATA' section 'data_FE' 
is overlapped on the 'rom_FE' from 10000H to 10000H
src\sect30.inc 97 Error (ln30): .\ncrt0.r30 : 'rom_FE' is written after 
the same name of relocatable section
processing ".\user.r30"
Error (ln30): .\user.r30 : 'ROMDATA' section 'rom_FO' is overlapped on 
the 'rom_FE' from 10000H to 1061DH
processing ".\printf.r30"
Error (ln30): .\printf.r30 : 'ROMDATA' section 'rom_FO' is overlapped on 
the 'rom_FE' from 1061EH to 10624H
processing ".\sio.r30"
Warning (ln30): .\sio.r30 : 'DATA' section 'data_NO' is overlapped on 
the 'program' from 412H to 417H
Error (ln30): .\sio.r30 : 'ROMDATA' section 'data_NOI' is overlapped on 
the 'rom_FE' from 1076DH to 10772H
processing ".\cli.r30"
Warning (ln30): .\cli.r30 : 'DATA' section 'data_NO' is overlapped on 
the 'program' from 418H to 418H
Error (ln30): .\cli.r30 : 'ROMDATA' section 'data_NOI' is overlapped on 
the 'rom_FE' from 10773H to 10773H
Error (ln30): .\cli.r30 : 'ROMDATA' section 'rom_FO' is overlapped on 
the 'rom_FE' from 10625H to 106D6H
processing ".\xmodem.r30"
Warning (ln30): .\xmodem.r30 : 'DATA' section 'data_NE' is overlapped on 
the 'program' from 400H to 401H
Warning (ln30): .\xmodem.r30 : 'DATA' section 'data_NO' is overlapped on 
the 'program' from 419H to 419H
Error (ln30): .\xmodem.r30 : 'ROMDATA' section 'data_NEI' is overlapped 
on the 'rom_FE' from 1075BH to 1075CH
Error (ln30): .\xmodem.r30 : 'ROMDATA' section 'data_NOI' is overlapped 
on the 'rom_FE' from 10774H to 10774H
Error (ln30): .\xmodem.r30 : 'ROMDATA' section 'rom_FO' is overlapped on 
the 'rom_FE' from 106D7H to 1075AH
processing ".\Lcd.r30"
processing "G:\M16C\LIB30\nc30lib.lib ( INIT.r30 )"
processing "G:\M16C\LIB30\nc30lib.lib ( DEVICE.r30 )"
processing "G:\M16C\LIB30\nc30lib.lib ( MALLOC.r30 )"
Warning (ln30): G:\M16C\LIB30\nc30lib.lib : 'DATA' section 'data_NE' is 
overlapped on the 'program' from 402H to 411H
Error (ln30): G:\M16C\LIB30\nc30lib.lib : 'ROMDATA' section 'data_NEI' 
is overlapped on the 'rom_FE' from 1075DH to 1076CH
processing "G:\M16C\LIB30\nc30lib.lib ( MEMCPY.r30 )"
processing "G:\M16C\LIB30\nc30lib.lib ( MEMSET.r30 )"
processing "G:\M16C\LIB30\nc30lib.lib ( BZERO.r30 )"
processing "G:\M16C\LIB30\nc30lib.lib ( BCOPY.r30 )"
processing "G:\M16C\LIB30\nc30lib.lib ( _I4DIV.r30 )"
processing "G:\M16C\LIB30\nc30lib.lib ( _I4DIVU.r30 )"
processing "G:\M16C\LIB30\nc30lib.lib ( _I4MODU.r30 )"
processing "G:\M16C\LIB30\nc30lib.lib ( _I4MULU.r30 )"
G:\M16C\BIN\MAKE.EXE: *** [.\lader.x30] Error 3
******** Finish...
Gast #26142
Lesenswert?
• ▲
▼
hier die sec30.inc.
das projekt war vroher nur ucos-ii mit 4 testtasks.
es gab keinerlei probleme. nun existiert nur noch ein task,
in welchem jetzt ein anders projekt (cli) laufen soll.
das cli für sich läuft auch ohne probleme.
ist das ganze ev. zu groß?

ralf
Angehängte Dateien:
Gast #26143
Lesenswert?
• ▲
▼
Tja, die sec30.inc sieht gut aus.

Meist hat das erste Auftreten eines Fehlers bei Compilieren eine 
Entscheidende Rolle

sieh Dir mal das an

>>uCOS-II/SOURCE/os_task.c 292 Error (ln30): .\uCOS_II.r30 : '_memset' value is 
undefined

Zeile 292 in os_task.c


Reiner
Gast #26144
Lesenswert?
• ▲
▼
nach includen der string.h hat sich das mit '_memset' geklärt.

ich habe das projekt wieder "rückgebaut", alles neue
raus damit nur das ucos-ii da ist. der fehler blieb.
dann habe ich die quellen neues verzeichnis kopiert
und darin ein neues projekt angelegt.
die "overlapped"-fehler sind weg!
dann habe ich wieder die anderen quellen eingefügt,
auch ohne fehler!

das ganze ist mir sehr suspekt, da ich nichts an den quellen
geändert habe.

ralf

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.