MfgTool2 read command

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

MfgTool2 read command

跳至解决方案
1,664 次查看
algernonarbuthn
Contributor II

The Manufacturing Tool V2 UCL User Guide mentions a "read" command in section 2.2.2.

This is intended to copy a file back to the host. The documentation is not clear on the syntax.

Anyone know how to do this?

标记 (1)
0 项奖励
回复
1 解答
1,430 次查看
algernonarbuthn
Contributor II

I figured this out after wading through the MfgTool source.

It's not mentioned in the documentation, but you need to provide a "savedfile" attribute.

So the XML looks something like:

<CMD state=Updater type=push body="read <target file spec>" savedfile="<host file spec>"><text></CMD>

There's an issue with this. The savedfile attribute values are not passed through the same mapping function as file values. This means that the saved file path is relative to the current directory.

I've also noticed some decidedly weird stuff with the XML parser. If a <CMD> is split over multiple lines, this sometimes causes commands to be skipped or issued twice. NXP should probably be using a decent XML parser, rather than something found on CodeProject.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,431 次查看
algernonarbuthn
Contributor II

I figured this out after wading through the MfgTool source.

It's not mentioned in the documentation, but you need to provide a "savedfile" attribute.

So the XML looks something like:

<CMD state=Updater type=push body="read <target file spec>" savedfile="<host file spec>"><text></CMD>

There's an issue with this. The savedfile attribute values are not passed through the same mapping function as file values. This means that the saved file path is relative to the current directory.

I've also noticed some decidedly weird stuff with the XML parser. If a <CMD> is split over multiple lines, this sometimes causes commands to be skipped or issued twice. NXP should probably be using a decent XML parser, rather than something found on CodeProject.

0 项奖励
回复
1,430 次查看
Carlos_Musich
NXP Employee
NXP Employee

Thank you for you comments Bill,

I will comment you inputs to applications team.

Regards,

Carlos

0 项奖励
回复