SREC0 Comments for vendor information

cancel
Showing results for 
Search instead for 
Did you mean: 

SREC0 Comments for vendor information

110 Views
codyzimmermann9
Contributor I

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

Tags (3)
0 Kudos
1 Reply

46 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Cody,

   Do you want to add comment in the generated .srec file?

   If yes, you can add the S0 record:

S0aa0000bbbbbbbbbbbbbbbbdd
  • aa - hexadecimal number of bytes that follow
  • bb - ASCII equivalent of comment
  • dd - the checksum
You can use   WRITES0COMMENT "comment" in the lcf file:

pastedImage_1.png

Then build the code.

pastedImage_2.png

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos