Outputting .s19 file from C code?

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

Outputting .s19 file from C code?

4,446 Views
IEEEGSU
Contributor I
I posted earlier that I could not get Codewarrior 4.5 or 4.7 to communicate with the minidragon plus2 board.  The computer does recocgnize the board but codewarrior does not.  I have tried about everything and the only thing I can think to do now is write the code in C and simulate it.  Is there a way to output that file as a .s19 (assembly hex file) file so I can use MiniIDE to put the file onto the microcontroller board.  I can learn the assembly language but I would much rather program in C and then just take the output and put it on the board.  If you can help with a list of instructions or where I can find out how to do this, let me know.
Labels (1)
0 Kudos
4 Replies

915 Views
Ivozz
Contributor I
Hello,
I'm new with the code warrior environment.
I need to generate an output file different from the "s19" (for example hex format) because i use an old EEPROM programmer that not supports the s19.
Is it possible?... If yes how can I configure my project...
Thank you!!!
0 Kudos

915 Views
CompilerGuru
NXP Employee
NXP Employee
Sounds like a new question, so I would open a new thread for it.
Anyway, check the batch burner manual and the *.bbl file which is in most samples.
The batch burner supports to issue srecords as well as intel hex files or binary images of an memory area.

Daniel
0 Kudos

915 Views
ipa
Contributor III
Hi,
Try to start a new project using the wizard and choosse from the list and check all usefull connection for you - I understand that your board uses a serial connection - I see one in wizard, check if it right.
To get a .s19 file, in CW go to Edit | select your target | in left pane go to "Linker for HC12", select it and in the right pane go to Options and then select Output and from the list check "Generate S-Record File"
Regards,
ipa
0 Kudos

915 Views
CrasyCat
Specialist III
Hello
 
CodeWarrior for HC12 does not have a connection available to connect to minidragon monitor. So you need to use the debugger delivered with your board.
If the debugger understands ELF DWARF file format you should be able to load directly the .abs file.
 
If you create a project using the project wizard a S record file will automatically be created for the application.
 
Look in directory {project}\bin (Where {project} refers to your project directory).
There is a file with extension .abs.s19 which is the S record file containing logical addresses.
 
If you are building for a HCS12 part, there is also a file with extension .abs.phy, which is the S record file containing logical addresses.
 
If you are building for HCS12X part, there is also a file with extension .abs.glo which is the S record file containing global addresses.
 
CrasyCat
0 Kudos