<?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 can I compile programs for the PCA10024 (MBED) using the IoT SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6366/how-can-i-compile-programs-for-the-pca10024-mbed-using-the-iot-sdk</link><description>I&amp;#39;ve been trying to get a simple blinky program to compile for the better part of a day now. The makefiles are outdated and so are the keil projects. Is this SDK no longer supported?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Apr 2015 09:01:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6366/how-can-i-compile-programs-for-the-pca10024-mbed-using-the-iot-sdk" /><item><title>RE: How can I compile programs for the PCA10024 (MBED) using the IoT SDK?</title><link>https://devzone.nordicsemi.com/thread/22176?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2015 09:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29ef5b7a-f791-4fe7-aa6d-f10828771db2</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;The libraries in the IoT SDK are compiled with version 4.7 2013q1 of the arm toolchain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I compile programs for the PCA10024 (MBED) using the IoT SDK?</title><link>https://devzone.nordicsemi.com/thread/22177?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 16:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d36f9bbb-df15-48f9-97bc-96bde149ec11</guid><dc:creator>maxpaynner</dc:creator><description>&lt;p&gt;Just tried with the version you guys used (4.8.3, q1 2014) and now this pops up&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/tmp/ccznC8bU.s: Assembler messages:
/tmp/ccznC8bU.s:145: Error: selected processor does not support ARM mode `dsb&amp;#39;
/tmp/ccznC8bU.s:151: Error: selected processor does not support ARM mode `dsb&amp;#39;
Makefile:266: recipe for target &amp;#39;_build/app_error.o&amp;#39; failed
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I compile programs for the PCA10024 (MBED) using the IoT SDK?</title><link>https://devzone.nordicsemi.com/thread/22178?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 15:46:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0201c3f5-9ba0-463e-87f7-cfaf5514a0b1</guid><dc:creator>maxpaynner</dc:creator><description>&lt;p&gt;Now my main problem is with the linker&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Linking target: nrf51822_xxaa_s1xx_iot.out
lto1: fatal error: bytecode stream generated with LTO version 2.1 instead of the expected 3.0
compilation terminated.
lto-wrapper: /usr/bin/arm-none-eabi-gcc returned 1 exit status
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Should I use an older version of the arm gcc toolchain?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I compile programs for the PCA10024 (MBED) using the IoT SDK?</title><link>https://devzone.nordicsemi.com/thread/22175?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 14:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cbc3869-a61d-4542-8c7a-6decaa4f50a1</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;What problems and error messages do you get? The IoT SDK should compile without much trouble. Seems like Makefile.common has been added as a mistake, as this is obviously for an older SDK. The makefile in each of the examples should compile the respective example without having to include Makefile.common.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I compile programs for the PCA10024 (MBED) using the IoT SDK?</title><link>https://devzone.nordicsemi.com/thread/22181?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 14:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e320d632-31d1-49f4-b0a5-24b701de446a</guid><dc:creator>maxpaynner</dc:creator><description>&lt;p&gt;Thanks, that&amp;#39;s what I&amp;#39;ve been doing, but I found a rather weird error when compiling. I&amp;#39;ll try to reproduce it and get back to you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I compile programs for the PCA10024 (MBED) using the IoT SDK?</title><link>https://devzone.nordicsemi.com/thread/22182?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 12:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26be8507-c04d-4fd8-8d5f-bb643068cdf4</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I&amp;#39;ve obviously missed &amp;quot;IoT&amp;quot; part of your issue, my bad. I had issues with porting of makefiles between standard SDK versions (e.g. old 6.x and &amp;quot;MDK5&amp;quot; style 7.x) so I&amp;#39;m not surprised that you face it with this special SDK release. In the end going file by file and locating it in target SDK version worked for me (and knowing that you are looking for PCA10001 files when it comes to target board should help you). Sorry but cannot offer more.&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I compile programs for the PCA10024 (MBED) using the IoT SDK?</title><link>https://devzone.nordicsemi.com/thread/22180?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 09:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1be4af7-0f1e-4cdd-8b48-5c71561a0eed</guid><dc:creator>maxpaynner</dc:creator><description>&lt;p&gt;Ok everyone, this is the standard makefile modified by me. If you just change the paths in &amp;quot;user configs&amp;quot; it should compile. I recommend placing anything that you need (such as the SDK and ARM toolchain inside your repository and using relative paths, so that the makefile stays the same across computers. Any source and header files you place in the source path should be included automatically.&lt;/p&gt;
&lt;p&gt;If you find any issues or have any suggestions please comment&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5736.Makefile"&gt;Makefile&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I compile programs for the PCA10024 (MBED) using the IoT SDK?</title><link>https://devzone.nordicsemi.com/thread/22179?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2015 11:45:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2992ef98-aca8-484d-9276-8488e16439a9</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Max,&lt;/p&gt;
&lt;p&gt;Is your aim only to compile the FW for Nordic mKIT (PCA10024 - &lt;a href="http://developer.mbed.org/platforms/Nordic-nRF51822/)?"&gt;developer.mbed.org/.../)&lt;/a&gt; In such case mbed on-line compiler should be the preferred option but you can use any other way supported by Nordic SDK (I&amp;#39;ve tested Keil and GCC), just set the target board to EvalKit (PCA10001) because they seems to be the same in terms of PIN layout (see this thread &lt;a href="https://devzone.nordicsemi.com/question/17247/difference-between-nrf51822-mkit-and-nrf51822-ek/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; or compare yourself at &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF51822-Evaluation-Kit)"&gt;www.nordicsemi.com/.../nRF51822-Evaluation-Kit)&lt;/a&gt;. I expect that official answer from Nordic will be that mKIT should be used with mbed only but from practical experiments there haven&amp;#39;t been reported any differences between PCA10001 and PCA10024 except loader part (auxiliary Atmel chip running mbed CMSIS-DAP FW in this case while normally it could run SEGGER J-Link OB).&lt;/p&gt;
&lt;p&gt;If you are also speaking about loading and debugging then I can from my experience recommend pyOCD (I&amp;#39;m not using GDB, just for flashing). It is more fragile then SEGGER environment but it&amp;#39;s open source and you save some money on dev kit by not paying SEGGER license. When I&amp;#39;ve used it first time in summer 2014 it needed small patches in &amp;quot;flash_nrf51822.py&amp;quot; to make it work as I needed (flashing SoftDevice HEX and Application BIN at one call) but it probably evolved so these minor glitches should be fixed. See &lt;a href="https://github.com/NordicSemiconductor/pyOCD/"&gt;github.com/.../&lt;/a&gt; and &lt;a href="https://github.com/mbedmicro/pyOCD/"&gt;github.com/.../&lt;/a&gt; for more details. OpenOCD claims nrf51 support as well but I haven&amp;#39;t succeeded with it.&lt;/p&gt;
&lt;p&gt;In case of particular problems while using OCD/GDB search this forum, there are already some issues and hints explained.&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>