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