SREC0 Comments for vendor information

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

SREC0 Comments for vendor information

520 次查看
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

标记 (3)
0 项奖励
1 回复

456 次查看
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 项奖励