<?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>Is it possible to flash S110 from Linux or OS X?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23/is-it-possible-to-flash-s110-from-linux-or-os-x</link><description>We&amp;#39;re working on a project with the nRF51822, but most of our developers are working from OS X and Linux. Is it possible to flash the softdevice from these platforms? Also, how does debugging work on these platforms?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2013 11:28:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23/is-it-possible-to-flash-s110-from-linux-or-os-x" /><item><title>RE: Is it possible to flash S110 from Linux or OS X?</title><link>https://devzone.nordicsemi.com/thread/101?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2013 11:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6fbf786-3eeb-44c9-9477-e8039fd0c7ef</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Also see this GitHub repository: &lt;a target="_blank" href="https://github.com/hlnd/nrf51-pure-gcc-setup" rel="nofollow"&gt;https://github.com/hlnd/nrf51-pure-gcc-setup&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to flash S110 from Linux or OS X?</title><link>https://devzone.nordicsemi.com/thread/102?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2013 11:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90f7a288-711a-4751-a2d9-7bdab57e2f55</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Also see this GitHub repository: &lt;a target="_blank" href="https://github.com/hlnd/nrf51-pure-gcc-setup" rel="nofollow"&gt;https://github.com/hlnd/nrf51-pure-gcc-setup&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to flash S110 from Linux or OS X?</title><link>https://devzone.nordicsemi.com/thread/103?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2013 23:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c927312-4f1d-4f43-9a0e-069bc5068986</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;I&amp;#39;ve been quite happy with my gcc experience so far on windows. I have not been able to reproduce a working linux environment, and &lt;strong&gt;for now&lt;/strong&gt; intend to stick to windows. Some facts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An ubuntu 12.04 LTS host running on an atom netbook&lt;/li&gt;
&lt;li&gt;Launchpad gcc-arm-none-eabi-4.7-2013q1 (&lt;em&gt;same&lt;/em&gt; as on the windows host)&lt;/li&gt;
&lt;li&gt;Identical Makefile Makefile.common, with the exception of Makefile.jlink for linux-based flashing / debugging&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The application is the ble_app_uart (sdk4.3 edit). It compiles successfully on either host, and seems to flash ok. The linux flashed version does not run, and spits out the following in gdb:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Breakpoint 1 at 0x14d04: file ../main.c, line 531.
Resetting target
Resetting target
(gdb) continue
Continuing.
Setting breakpoint @ address 0x00014D04, Size = 2, BPHandle = 0x0001
Starting target CPU...
...Target halted (PC = 0xFFFFFFFE)
Reading all registers

Program received signal SIGTRAP, Trace/breakpoint trap.
Removing breakpoint @ address 0x00014D04, Size = 2
Read 4 bytes @ address 0xFFFFFFFE (Data = 0x401C59F9)
0xfffffffe in ?? ()
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Additionally the linked output files are not the same (in md5 or size); even though the build environment and toolchains are identical!&lt;/p&gt;
&lt;p&gt;If you have any pointers, or what I describe / paste has any obvious giveaways, please share.&lt;/p&gt;
&lt;p&gt;Working in Windows in the meantime,
Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to flash S110 from Linux or OS X?</title><link>https://devzone.nordicsemi.com/thread/100?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2013 01:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:270cdb6d-723b-41c1-97a2-ab9c49cf93e3</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Thanks Ole. Why not include the Makefile.posix (it&amp;#39;s mentioned, but commented out in Makefile.common too), and the above information in the official SDK; even if under experimental &amp;#39;label&amp;#39;, ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to flash S110 from Linux or OS X?</title><link>https://devzone.nordicsemi.com/thread/99?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2013 18:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0943703a-3aa9-468f-897c-88fb1538790b</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Yes, this is most definitely possible. Segger deliver their tools for both OS X and Linux, so you first have to install them, available &lt;a href="http://www.segger.com/jlink-software.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Having done this, you should be able to use the flash targets in the attached Makefile to flash both the softdevice and an application. You will have to do tweak the path to the J-Link tools, but afterwards you should be able to do&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
make flash-softdevice SOFTDEVICE=../path/to/softdevice/without/spaces.hex

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to flash the softdevice.&lt;/p&gt;
&lt;p&gt;Debugging is also possible, by starting the J-Link GDB server with the -if swd command line argument, and then using either command line GDB or GDB integrated into Eclipse or similar to connect to the server, by doing a &amp;quot;target remote localhost:2331&amp;quot;. How to set this up for Eclipse is described in &lt;a href="https://www.nordicsemi.com/eng/content/download/16271/261587/file/Development_with_GCC_and_Eclipse_v1.0.pdf"&gt;nAN-29&lt;/a&gt;, and even though it is written for Windows, the Eclipse setup should be very similar on OS X and Linux.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Makefile.posix.txt"&gt;Makefile.posix.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>