Outputting .s19 file from C code?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Outputting .s19 file from C code?

4,872件の閲覧回数
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.
ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,341件の閲覧回数
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 件の賞賛
返信

1,341件の閲覧回数
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 件の賞賛
返信

1,341件の閲覧回数
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 件の賞賛
返信

1,341件の閲覧回数
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 件の賞賛
返信