S-record issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S-record issue

Jump to solution
2,029 Views
james-lee
NXP Employee
NXP Employee
Hello,
 
I am using CodeWarrior for MPC5500 v2.1 and have a problem for output file.
 
Please find attached the output file, the linker file and the .MAP file.  RAM section (0x40000000) is generated as part of the .s3 record but RAM section should not appear in the .s3 record.
 
S319400000000000000000000000000000000000000000000000A6
S319400000180000249C000024C8000024F4000025200000254C14
S3194000002C00002578000025A4000025D0000025FC00002628B0
S31940000040000027A000002838000028D0000028E800002914FA
S31140000054000029AC00002A4400002A5C91
 
Also, find below the compiler and linker options that I have used.
 
** Compiler option **
CFLAGS=  -w on -opt all -char unsigned -sdatathreshold 0 -sdata2threshold 0 -c -use_isel on -proc Zen -use_lmw_stmw on -gdwarf-2 -cpp_exceptions off
** Linker option **
LFLAGS= -char unsigned -map -gdwarf-2 -srec -l "$(MPC55XX_LIBPATH)\Runtime\Lib" -lRuntime.PPCEABI.E.UC.a  -l "$(MPC55XX_LIBPATH)\MSL\MSL_C\PPC_EABI\Lib" -lMSL_C.PPCEABI.bare.E.UC.a -lcf
 
Would you please advice me?
 
Best regards,
James
0 Kudos
1 Solution
860 Views
CrasyCat
Specialist III
Hello
 
I assume you are looking for building a stand alone application for your MPC55xx project. Am I right?
If this is the case you need to create a ROM image for your application.
 
I checked your .lcf file and it seems it is set up for ROM image creation. All you need is to add the options -romaddr and -rambuffer to your linker command line. 
 
The address specified in romaddr and rambuffer must be the start address of the flash memory area.
In your case "-romaddr 0x00002000 -rambuffer 0x00002000"
 
CrasyCat

View solution in original post

0 Kudos
1 Reply
861 Views
CrasyCat
Specialist III
Hello
 
I assume you are looking for building a stand alone application for your MPC55xx project. Am I right?
If this is the case you need to create a ROM image for your application.
 
I checked your .lcf file and it seems it is set up for ROM image creation. All you need is to add the options -romaddr and -rambuffer to your linker command line. 
 
The address specified in romaddr and rambuffer must be the start address of the flash memory area.
In your case "-romaddr 0x00002000 -rambuffer 0x00002000"
 
CrasyCat
0 Kudos