mc9s08aw16

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

mc9s08aw16

Jump to solution
1,061 Views
kextdev
Contributor II

Hello everyone

how to decoding program from mc9s08aw16 thank you so much

Labels (1)
1 Solution
833 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

4 Replies
834 Views
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!
-----------------------------------------------------------------------------------------------------------------------

833 Views
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 Kudos
Reply
833 Views
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!
-----------------------------------------------------------------------------------------------------------------------

833 Views
kextdev
Contributor II

Thank you so much

0 Kudos
Reply