<?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>Error running project: Exec format error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36759/error-running-project-exec-format-error</link><description>Hello, I am new to nRF micro-controllers and using Netbeans. I have cloned the repo of a project I would like to run, which builds successfully, and am getting the following error: cannot execute binary file: Exec format error I am running Netbeans 8</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Jul 2018 08:12:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36759/error-running-project-exec-format-error" /><item><title>RE: Error running project: Exec format error</title><link>https://devzone.nordicsemi.com/thread/141272?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 08:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:547fe1ee-681b-4f49-bbc2-3b54bf52a78f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I am not 100 % sure if the segger drivers and other tools are bundled with Ozone. It should be present in your start-meny (or c:\program files (x86)\SEGGER\&amp;lt;version&amp;gt;\JLinkGDBServer.exe), and if not; you can always download the latest drivers here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.segger.com/downloads/jlink/JLink_Windows.exe"&gt;https://www.segger.com/downloads/jlink/JLink_Windows.exe&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error running project: Exec format error</title><link>https://devzone.nordicsemi.com/thread/141202?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 17:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cf015f6-977b-4b44-8260-25a5ee9254d3</guid><dc:creator>Tim at Facture</dc:creator><description>&lt;p&gt;Thank you H&amp;aring;kon for your prompt reply&lt;br /&gt;&lt;br /&gt;I have downloaded the plugin and activated it in the Netbeans plugin tool. I have also added /path/arm-none-eabi-gdb as the Debugger Command.&lt;br /&gt;&lt;br /&gt;I was told to install Segger&amp;#39;s debugging environment Ozone which should have included Segger&amp;#39;s software tools. Do you know if this gives me what I need to start a J-Link GDBServer?&lt;br /&gt;&lt;br /&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error running project: Exec format error</title><link>https://devzone.nordicsemi.com/thread/141085?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 07:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d8fc22-3650-4bff-930c-b592a41518f7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems like netbeans is trying to actually run your .elf file locally, as you would any .exe file compiled on a x86 system. I believe netbeans do not have native support for ARM, so you&amp;#39;ll have to install a 3rd party gdb-server plugin:&amp;nbsp;&lt;a href="http://plugins.netbeans.org/plugin/37426/gdbserver"&gt;http://plugins.netbeans.org/plugin/37426/gdbserver&lt;/a&gt;&amp;nbsp;(wiki here:&amp;nbsp;&lt;a href="http://wiki.netbeans.org/GdbServer"&gt;http://wiki.netbeans.org/GdbServer&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Try populating the &amp;quot;Debugger Command&amp;quot; with /path/to/arm-none-eabi-gdb. Prior to this, you&amp;#39;ll need to manually start the J-Link GDBServer and then populate the netbeans Gdbserver plugin with Target: &amp;quot;remote localhost:2331&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t used netbeans for quite some time, so I cannot guarantee that the above will allow you to successfully debug. If you&amp;#39;re still stuck, I can recommend checking out &lt;a href="https://www.segger.com/products/development-tools/embedded-studio/"&gt;Segger Embedded Studio&lt;/a&gt;, which is free to use with nRF5-series devices (registration required).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>