<?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>Bad CPU type in executable in nrf5sdk-tools</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118843/bad-cpu-type-in-executable-in-nrf5sdk-tools</link><description>Hi I want to use nrfutil nrf5sdk-tools in MacOS but when I try to run it I get the following error. 
 &amp;quot; Error: Failed to spawn inner nrfutil-legacy executable 
 
 Caused by: 
 Bad CPU type in executable (os error 86) &amp;quot; 
 
 Here are the details. MacOS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Feb 2025 17:51:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118843/bad-cpu-type-in-executable-in-nrf5sdk-tools" /><item><title>RE: Bad CPU type in executable in nrf5sdk-tools</title><link>https://devzone.nordicsemi.com/thread/524151?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 17:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db42fcaa-a1b1-4501-ad9f-eb7fa21fcee1</guid><dc:creator>TomH_Eng</dc:creator><description>&lt;p&gt;Thank for your suggestion &lt;a href="https://devzone.nordicsemi.com/members/spicychef"&gt;SpicyChef&lt;/a&gt;&amp;nbsp;. I am trying to avoid using Rosetta 2, the&amp;nbsp;&lt;span&gt;nrf5sdk-tools&amp;nbsp;is the only tool in my development pipeline that requires a non native arm64 executable.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It would be nice to know if&amp;nbsp;Nordic has an arm64 version of&amp;nbsp;pc-nrfutil_legacy_v6.1.7 available.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Looking at their GitHub project for the legacy pc-nrftuil, there&amp;nbsp;seem to be some talk that&amp;nbsp;it is possible to build an ARM version if you jump through a couple of hoop.&amp;nbsp;The pc-ble-driver dependency sounds like one of the big issues.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The pkg and settings functions are the only thing I need from the&amp;nbsp;nrf5sdk-tools to build DFU packages for projects that are still using the&amp;nbsp;legacy nRF5 SDK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does anyone here know if there is another tool that can generate DFU packages that is more cross platform and ARM friendly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bad CPU type in executable in nrf5sdk-tools</title><link>https://devzone.nordicsemi.com/thread/524146?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 16:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa61080-220d-47ec-8a7d-397dd3fe2335</guid><dc:creator>SpicyChef</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/tomh_5f00_eng"&gt;TomH_Eng&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To fix this issue install Rosetta on your MacOS&amp;nbsp; &lt;pre class="ui-code" data-mode="text"&gt;softwareupdate --install-rosetta&lt;/pre&gt;&lt;br /&gt;nrfutil was built for intel based Macs and it needs this translation layer to work. This translation causes the nrfutil on ARM MacOS to be slower compared to Linux or Windows. This is my theory though I haven&amp;#39;t tested on a variety of systems.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/members/menon"&gt;Menon&lt;/a&gt;&amp;nbsp;Is there a plan to have nrfutil work on MacOS without the need for Rosetta?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bad CPU type in executable in nrf5sdk-tools</title><link>https://devzone.nordicsemi.com/thread/524032?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 09:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0ef8931-536b-4379-ac62-ff407d3d55e4</guid><dc:creator>TomH_Eng</dc:creator><description>&lt;p&gt;I recently upgraded to an M3 Max MacBook and I also get this same error when trying to run any of the&amp;nbsp;&lt;span class="s1"&gt;nrf5sdk-tools commands&amp;nbsp;using nrfutil &lt;/span&gt;&lt;span class="s1"&gt;7.12.0 (39003c9 2024-06-10). It looks like it tries to&lt;span&gt;&amp;nbsp;spawn the executable installed as&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="s1"&gt;~/.nrfutil/lib/nrfutil-nrf5sdk-tools/pc_nrfutil_legacy_v6.1.7.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;When I do a &amp;#39;file&amp;#39; on this executable it report that it is:&amp;nbsp;&lt;span&gt;Mach-O 64-bit executable x86_64&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;&lt;span&gt;Seems like when you install the&amp;nbsp;nrf5sdk-tools it installs the executable for the wrong architecture. The nrfutil executable is:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="s1"&gt;Mach-O 64-bit executable arm64&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;Is it possible to force the install to download the arm64 version of the&amp;nbsp;&lt;span&gt;pc_nrfutil_legacy_v6.1.7 executable when installing nrf5sdk-tools.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bad CPU type in executable in nrf5sdk-tools</title><link>https://devzone.nordicsemi.com/thread/522664?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 14:03:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b9cf477-baa6-40bd-b637-89c6e1042c41</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There are some limitations with nRF Util when working with macOS. See the section on&lt;a href="https://docs.nordicsemi.com/bundle/nrfutil/page/README.html#supported-operating-systems"&gt; supported operating systems&lt;/a&gt; for nRF Util. Is that the whole log when trying to run? If not, could you provide the complete log?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;br /&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>