hello Kris,
If you've only the Srecord file we don't have solution to generate the source code.
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, you must define the processor and select the options:
-D: Decode DWARF Sections
-E: Decode ELF sections
The decoder will generates a file containing all assembly instruction for your application.
.S19 is optimized code by compiler, the compiler already optimizes the original source C code then generates .S19 That’s to say, each of them doesn’t contain any the original source code info any more, but only includes optimized code.
We can only be able to decode it and see the object code in assembly-pseudo (not real assembly) format.
This attribute is depended on .s19 and .lib itself but not decode tool.
====================================
this answer is for you. if it helps. please click on "Correct Answer " button. thanks!
Best Regards,
ZhangJun