<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to use copy command in makefile?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76441/how-to-use-copy-command-in-makefile</link><description>Hello, 
 I used a command like this in the makefile, but the makefile reported an error. 
 
 But I can generate ota_file.bin with a bat file. 
 Regards, 
 Gray.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Jun 2021 01:05:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76441/how-to-use-copy-command-in-makefile" /><item><title>RE: How to use copy command in makefile?</title><link>https://devzone.nordicsemi.com/thread/316146?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 01:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0f227ca-80bd-416c-a89c-bd6909f46da8</guid><dc:creator>Palmer Huang</dc:creator><description>&lt;p&gt;Thanks for your suggestion, I know what to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use copy command in makefile?</title><link>https://devzone.nordicsemi.com/thread/316021?ContentTypeID=1</link><pubDate>Fri, 18 Jun 2021 08:12:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7db0a870-9aef-4018-8bd0-a9ec01bede00</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;I would not think you can do so by appending the .bin &lt;em&gt;file path&lt;/em&gt; to the .bat f&lt;em&gt;ile path&lt;/em&gt;.&lt;br /&gt;If the &amp;#39;+&amp;#39; character is being interpreted without any specific makefile meaning, then you will still just append the one path string to the other, which is likely why the error reads &amp;quot;cant find the specified file&amp;quot;.&lt;br /&gt;&lt;br /&gt;You mention that you are able to successfully merge the two files together in your bat script, could you not just do this as an operation following the make command?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use copy command in makefile?</title><link>https://devzone.nordicsemi.com/thread/316013?ContentTypeID=1</link><pubDate>Fri, 18 Jun 2021 07:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbf5d646-8193-4b9b-9b27-ec149a61ccac</guid><dc:creator>Palmer Huang</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Karl.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My purpose is to merge the dat file and the bin file into one bin file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use copy command in makefile?</title><link>https://devzone.nordicsemi.com/thread/316009?ContentTypeID=1</link><pubDate>Fri, 18 Jun 2021 07:12:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:335ea89e-d96b-40b3-80f6-f4770dce98b3</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Gray,&amp;nbsp;&lt;/p&gt;
[quote user=""] I used a command like this in the makefile, but the makefile reported an error.[/quote]
&lt;p&gt;I suspect that the problem here is due to your first path argument - specifically, I think that the &amp;#39;+&amp;#39; character is the cause for this. If I recall correctly the &amp;#39;+&amp;#39; character is a special character in the makefile.&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;_build\ota_image\release_1.dat+_build\ota_image\release_1.bin&lt;/pre&gt;&lt;br /&gt;What is your intention with this operation, what did you expect to have happen?&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>