I am trying to adding a comment in the srec file for the kinetis MCU using CodeWarrior. According to the documentation, the WRITES0COMMENT should be used in the LCF. I however get a syntax error when attempting this. Can someone provide an example for how this is done. Thanks
Hi Cody,
Do you want to add comment in the generated .srec file?
If yes, you can add the S0 record:
S0aa0000bbbbbbbbbbbbbbbbdd
You can use WRITES0COMMENT "comment" in the lcf file:
Then build the code.
You can find I can generate the
S00A0000636F6D6D656E7402
It is the comment.
I also attached my cw project for your reference.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------