Hi All, I am trying to build a serial bootloader into my exsisting application using codewarrior v1.2 on the HCS12DP256 micro. I have imported the assembly files from the document AN2153 into my banked-project. I get the following error when i attempt to compile, Link Error: L1401: Incompatible memory model: BANKED in previous files and SMALL in current file. Link Error: L1301: Cannot open file: C:\ etc... I only get this error when i select the banked memory model, it compiles fine for the un-banked flash. Has anyone has the same issues with codewarrior?? Thanks in advance. John Pititto. |
|
Programming HC12 with Codewarrior V1.2 using AN2153
Started by ●November 6, 2003
Reply by ●November 6, 20032003-11-06
Hi John. The linker complains because some objects have been generated "SMALL" and some others "BANKED" (-Mb option). 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 At 07:09 AM 11/6/2003, you wrote: >Hi All, > >I am trying to build a serial bootloader into my exsisting >application using codewarrior v1.2 on the HCS12DP256 micro. > >I have imported the assembly files from the document AN2153 into my >banked-project. I get the following error when i attempt to compile, > >Link Error: L1401: Incompatible memory model: BANKED in previous >files and SMALL in current file. > >Link Error: L1301: Cannot open file: C:\ etc... > >I only get this error when i select the banked memory model, it >compiles fine for the un-banked flash. >Has anyone has the same issues with codewarrior?? > >Thanks in advance. > >John Pititto. > >-------------------- > >">http://docs.yahoo.com/info/terms/ |
Reply by ●November 6, 20032003-11-06
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 match. Bye Daniel > -----Original Message----- > From: ra [mailto:] > Sent: Thursday, November 06, 2003 17:23 > To: > Subject: Re: [68HC12] Programming HC12 with Codewarrior V1.2 using > AN2153 > Hello John > > This must be because your project links to a library compiled with the banked model. > Usually this is "ansi-b" -- so the solution would be to link to "ansi-s" instead (or whatever matches your compiler settings). > > Regards > Robert > > > >Hi All, > > > >I am trying to build a serial bootloader into my exsisting > >application using codewarrior v1.2 on the HCS12DP256 micro. > > > >I have imported the assembly files from the document AN2153 into my > >banked-project. I get the following error when i attempt to compile, > > > >Link Error: L1401: Incompatible memory model: BANKED in previous > >files and SMALL in current file. > > > >Link Error: L1301: Cannot open file: C:\ etc... > > > >I only get this error when i select the banked memory model, it > >compiles fine for the un-banked flash. > > > > > >Has anyone has the same issues with codewarrior?? > > > >Thanks in advance. > > > >John Pititto. > > > > > > > >-------------------- > > > > > > > >">http://docs.yahoo.com/info/terms/ > > > -------------------- > > ">http://docs.yahoo.com/info/terms/ |
Reply by ●November 6, 20032003-11-06
Hello John This must be because your project links to a library compiled with the banked model. Usually this is "ansi-b" -- so the solution would be to link to "ansi-s" instead (or whatever matches your compiler settings). Regards Robert > >Hi All, > >I am trying to build a serial bootloader into my exsisting >application using codewarrior v1.2 on the HCS12DP256 micro. > >I have imported the assembly files from the document AN2153 into my >banked-project. I get the following error when i attempt to compile, > >Link Error: L1401: Incompatible memory model: BANKED in previous >files and SMALL in current file. > >Link Error: L1301: Cannot open file: C:\ etc... > >I only get this error when i select the banked memory model, it >compiles fine for the un-banked flash. >Has anyone has the same issues with codewarrior?? > >Thanks in advance. > >John Pititto. > >-------------------- > >">http://docs.yahoo.com/info/terms/ |
|