Hi All, I have been attempting allow banked memory on my MCS12DP256 micro with codewarrior 1.2. I found the example Fibo - Flash Banked and followed the convention in the prm file and settings on the target with the compiler command line argument (-Mb). That all seems ok, however, I recieve the errors when I attempt to compile, L4004: Linking C:\Documents and Settings\johnpi\Desktop\AnaTOC - Single Reactor\ETOC\prm\flash.prm as ELF/DWARF format link parameter file Link Error : L1401: Incompatible memory model: SMALL in previous files and BANKED in current file. I have previsously posted this message with the reply from gillies, " Hi John. The linker complains because some objects have been generated "SMALL" and some others "BANKED" (-Mb). This might be a library issue, like "ansis.lib" is "SMALL" and if you want to use a "BANKED" version, use the "ansib.lib". Please check the library currently used in your Codewarrior project. I hope this help. Regards, Gilles" I have checked that my banked project has the "ansib.lib" however i still get the same error message. Any (other) Ideas ?? Anyone? Thanks in advance! Kind Regards, John Pititto |
|
Re: Link Error : L1401 Codewarrior HC12
Started by ●November 23, 2003
Reply by ●November 24, 20032003-11-24
Hello John if your project uses any assembler files, the Assembler also needs to have the banked memory option set ... > > Hi All, > I have been attempting allow banked memory on my MCS12DP256 micro > with codewarrior 1.2. I found the example Fibo - Flash Banked and > followed the convention in the prm file and settings on the target > with the compiler command line argument (-Mb). That all seems ok, > however, I recieve the errors when I attempt to compile, > L4004: Linking C:\Documents and Settings\johnpi\Desktop\AnaTOC - > Single Reactor\ETOC\prm\flash.prm as ELF/DWARF format link parameter > file > Link Error : L1401: Incompatible memory model: SMALL in previous > files and BANKED in current file. > > I have previsously posted this message with the reply from gillies, > > " Hi John. > The linker complains because some objects have been generated "SMALL" > and some others "BANKED" (-Mb). This might be a library issue, > like "ansis.lib" is "SMALL" and if you want to use a "BANKED" > version, use the "ansib.lib". Please check the library currently used > in your Codewarrior project. > I hope this help. > Regards, Gilles" > > I have checked that my banked project has the "ansib.lib" however i > still get the same error message. > > Any (other) Ideas ?? Anyone? > > Thanks in advance! > > Kind Regards, > > John Pititto > |
Reply by ●November 24, 20032003-11-24
Hi John. One other possibility is also that you did not specify -Mb in the assembler options, just in the compiler options (or vice versa). The memory model used for the compiler, assembler and for the library must all match. John, I replied to you directly last week, but it seems like there's a problem with your mail server. See below. Regards, Gilles Date: 21 Nov 2003 07:20:38 -0000 From: <> To: <> Subject: failure notice Return-Path: <> X-OriginalArrivalTime: 21 Nov 2003 11:51:35.0599 (UTC) FILETIME=[D091A3F0:01C3B025] Hi. This is the qmail-send program at greenback.hotkey.net.au. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <>: Sorry, no mailbox here by that name. (#5.1.1) At 01:47 AM 11/24/2003, you wrote: >Hi All, >I have been attempting allow banked memory on my MCS12DP256 micro >with codewarrior 1.2. I found the example Fibo - Flash Banked and >followed the convention in the prm file and settings on the target >with the compiler command line argument (-Mb). That all seems ok, >however, I recieve the errors when I attempt to compile, >L4004: Linking C:\Documents and Settings\johnpi\Desktop\AnaTOC - >Single Reactor\ETOC\prm\flash.prm as ELF/DWARF format link parameter >file >Link Error : L1401: Incompatible memory model: SMALL in previous >files and BANKED in current file. > >I have previsously posted this message with the reply from gillies, > >" Hi John. >The linker complains because some objects have been generated "SMALL" >and some others "BANKED" (-Mb). This might be a library issue, >like "ansis.lib" is "SMALL" and if you want to use a "BANKED" >version, use the "ansib.lib". Please check the library currently used >in your Codewarrior project. >I hope this help. >Regards, Gilles" > >I have checked that my banked project has the "ansib.lib" however i >still get the same error message. > >Any (other) Ideas ?? Anyone? > >Thanks in advance! > >Kind Regards, > >John Pititto > >-------------------- > >">http://docs.yahoo.com/info/terms/ |