SREC0 Comments for vendor information

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SREC0 Comments for vendor information

562件の閲覧回数
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 返信

498件の閲覧回数
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 件の賞賛
返信