不明白 WRITES0COMMENT 这个命令 在 sections 中是怎么使用的？想更改.mot文件中的 S0-Record 内容。
could you please write your question once again in English language. This is international community and official language is English. I am not able to understand your question when it is written in Chinese.
They are asking about how to use the "WRITES0COMMENTS" linker-command-file directive in CodeWarrior for MCU V10.5 (Eclipse), so that they can insert a comment at the beginning of an S-Record (the .mot file generated by the compiler). This is documented in section 14.7.18 of CWMCUCFMPRE.pdf, the code warrior for mcu reference.
Inserts an S0 comment record into an S-record file.
Comment text: a string of alphanumerical characters 0-9 , A-Z, and a-z, plus space, underscore, and dash characters. Double quotes must enclose the comment string. (If youomit the closing double-quote character, the linker tries to put the entire LCF into the S0comment.)
This command, valid only in an LCF sections segment, creates an S0 record of the form:
This command does not null-terminate the ASCII string. Within a comment string, do not use these character sequences, which are reserved for LCF comments: # /* */ //
This example shows that multi-line S0 comments are valid:
WRITES0COMMENT "Line 1 comment
Line 2 comment"
thank you .
but i don,t know how to use the command in the lcf file.
Can you give a example about the command .
Add the command in the lcf ,always make error.
by itself would not work for me.
Maybe someone at Freescale/NXP/Qualcomm can comment on this and provide an example of how to put a comment into the S0 record.
S0 Record. The address field is unused and will be filled with zeros (0x0000). The header information within the data field is divided into the following subfields.
mname is char and is the module name.ver is char and is the version number.rev is char and is the revision number.description is char[0-36] and is a text comment.
I searched some older answers about this topis and it seems WRITES0COMMENT is not implemented for MPC56xx family microcontrollers. I found this feature was available for ColdFire and DSC microcontrollers.
I am sorry for any inconvenience.
Retrieving data ...