mc9s08aw16

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

mc9s08aw16

跳至解决方案
1,579 次查看
kextdev
Contributor II

Hello everyone

how to decoding program from mc9s08aw16 thank you so much

标签 (1)
1 解答
1,351 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

hi Kext

CodeWarrior generates 2 files a Srecord file and an abs file.

The Srecord file contains only the code to be downloaded in the chip whereas the abs will contains the code and debug info.

Generally the abs file is used in development phase in order to debug the application.

Srecord is used for final download and or production.

If you've only the Srecord file we don't have solution to generate the source code. We can  not do that because S19 file is OPTIMIZED code that doesn’t include C source code information.

However with the decoder tool you can have the assembly instruction of your application.

To that you must launch the decoder.exe tool in the \prog folder.

Under Decoder ¦ Option Settings |input tab, you must define the Object file format and set processor. For instance

            -fs: object format is srecord file

            -Proc=HC08: processor is HC08 derivative

The decoder will generate a file containing all assembly instruction for your application.

In case you've the abs file, with the same tool decoder.exe with the same options you will get the source code you will have in your application.

If your application was wrote in C the decoder will generates the C source.

For details please refer to the manual:

            help\pdf\Build_Tools_Utilities.pdf

search this doc with keyword “Decoder”


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

4 回复数
1,352 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

hi Kext

CodeWarrior generates 2 files a Srecord file and an abs file.

The Srecord file contains only the code to be downloaded in the chip whereas the abs will contains the code and debug info.

Generally the abs file is used in development phase in order to debug the application.

Srecord is used for final download and or production.

If you've only the Srecord file we don't have solution to generate the source code. We can  not do that because S19 file is OPTIMIZED code that doesn’t include C source code information.

However with the decoder tool you can have the assembly instruction of your application.

To that you must launch the decoder.exe tool in the \prog folder.

Under Decoder ¦ Option Settings |input tab, you must define the Object file format and set processor. For instance

            -fs: object format is srecord file

            -Proc=HC08: processor is HC08 derivative

The decoder will generate a file containing all assembly instruction for your application.

In case you've the abs file, with the same tool decoder.exe with the same options you will get the source code you will have in your application.

If your application was wrote in C the decoder will generates the C source.

For details please refer to the manual:

            help\pdf\Build_Tools_Utilities.pdf

search this doc with keyword “Decoder”


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,351 次查看
kextdev
Contributor II

Thank you so much Zhang Jun

I was puzzled  

What is tool need decoding program

Where to buy the tools for decoding

Best Regard

0 项奖励
回复
1,351 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

hi Hext.

the tool decoder.exe is included in CW10 install folder C:\Freescale\CW MCU v10.6\MCU\prog which is free.

I also found a related article that was written by Erich. Hope this can help you either.

Decoding S19 Files | MCU on Eclipse

can this help?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,351 次查看
kextdev
Contributor II

Thank you so much

0 项奖励
回复