<?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>nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28758/nrf52832-gcc-issues</link><description>Hello, 
 I&amp;#39;m trying to prototype an application on the nRf52 DK (PCA10040) using the GCC toolchain. I followed all of the tutorial for setting things up and I can build and flash things fine, but I don&amp;#39;t think the application is working correctly. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Dec 2017 13:55:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28758/nrf52832-gcc-issues" /><item><title>RE: nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/thread/113958?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 13:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6610a945-e170-495e-9548-f284ed1dddca</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Josh,&lt;/p&gt;
&lt;p&gt;Did you do bonding ?  If you do bonding and then if you erase bond on the phone, the phone won&amp;#39;t be able to connect to your device because the bond information is still on the device.&lt;/p&gt;
&lt;p&gt;How did you test ? Please try to use only nRFConnect to test, don&amp;#39;t use the phone Bluetooth setting as it will request pairing.&lt;/p&gt;
&lt;p&gt;When you do chiperase, the bond information is erased as well so you connect normally.&lt;/p&gt;
&lt;p&gt;I suggest you to check with debugger to see if the device assert any problem when you flash with sectorerase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/thread/113955?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 22:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba62a55-a1a0-498b-8cb1-ca8cdcb889a6</guid><dc:creator>josh</dc:creator><description>&lt;p&gt;@Hung Bui, I tried the hex file you provided, same behaivor a described in my previous post, --chiperase works, --sectorerase results in an application my phone can see but pairing is rejected. I merged the hex file you provided with SoftDevice 132 v5.0.0 before programming.&lt;/p&gt;
&lt;p&gt;With this in mind, I think I&amp;#39;m pretty comfortable assuming it&amp;#39;s not my build environemnt / GCC setup that is the issue, that said I&amp;#39;ve attached a hex file form the SDK 14.2 HRS example that I built with this GCC setup:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;GNU_INSTALL_ROOT := D:/GNU_Arm/5_4_2016_q3/bin/
GNU_VERSION := 6.3.1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See Edit 1 in original post for link to file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/thread/113954?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 16:06:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:894b3ce9-3ac8-40e9-a044-522c6c3ee720</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Josh,&lt;/p&gt;
&lt;p&gt;Could you provide a hex file you compile using one of our example that has the issue you are seeing (the issue with --sectorerase) so we can test here.&lt;/p&gt;
&lt;p&gt;I attached here a hex file that I used gcc to compile ble_app_hrs SDK v14.2. Could you try to test ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0576.nrf52832_5F00_xxaa.hex"&gt;nrf52832_xxaa.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/thread/113960?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 15:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb6b275-f8ec-4efd-a1f2-35c67a715215</guid><dc:creator>josh</dc:creator><description>&lt;p&gt;After a lot of trial and error last night I finally got things to work, and was able to zero in on the issue, but would like some help help understanding it.&lt;/p&gt;
&lt;p&gt;It all comes down to how I do the programming, as you suggested Matt, I&amp;#39;ve tried a lot of different ways to program the application, soft device (S132 v3 that was bundled with SKD 12.3), and combined hex files containing both. What eventually worked was programming the combined hex file with the command line tools (nrfjprog).&lt;/p&gt;
&lt;p&gt;If I command a --sectorerase the flashing goes fine but the application does not behave correctly, if I combine my application hex file and soft device and program them with a --chiperase things work perfectly. I also did some experimenting with programming the precompiled example (via nrfjprog), same behavior, --chiperase fails to pair, --sectorerase works. When I was originally troubleshooting I was programming my compiled hex files via the make file, which commands --sectorerase, and I was dropping the combined precompiled hex file into the USB mass storage device for the devboard and letting it do the programming. I&amp;#39;m guessing that the USB mass storage programming results in a chip erase, because things always seemed to work when I programmed the precompiled examples this way.&lt;/p&gt;
&lt;p&gt;Any thoughts on what could be causing this? Seems like a problem with the programming tool?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/thread/113959?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 14:26:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c75f20a2-93fb-4110-ac2d-a73879e7240f</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Weird indeed. Did you observe any funky compiler warnings from the armgcc? I believe the precompiled hex includes the softdevice already so when you flash in your own armgcc compiled bin do you flash in the softdevice first (the one that comes with the sdk12)? Do you use nRF cmd line utilities or the nRFgo studio to flash in the softdevice and your bin file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/thread/113953?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 06:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad6f4d93-37a6-4cf0-a547-c1e959e29453</guid><dc:creator>josh</dc:creator><description>&lt;p&gt;It&amp;#39;s also worth noting that with the HRS example I am seeing the device advertising in Android, but it always fails to pair. When I switch to the precompiled example hex file things pair smoothly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/thread/113952?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 06:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69fca2e9-8be8-4029-ab16-258cf6edc270</guid><dc:creator>josh</dc:creator><description>&lt;p&gt;I&amp;#39;ve now tried 3 different versions of the GNU ARM compiler, and I get strange / erratic behavior no matter which one I use.&lt;/p&gt;
&lt;p&gt;I think it has to be something in my configuration of the tools that is causing issues. I&amp;#39;ve tried building the HID example with no changes to the v12.3 SDK, with the exception of updating Makefile.common to properly point to my GNU ARM installation directory.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been through the tutorial for setting up GCC/Eclipse several times and I&amp;#39;ve followed it as exactly as I can, some menus have moved around in the newest Eclipse version, but I&amp;#39;m pretty sure I&amp;#39;ve configured everything correctly. I&amp;#39;ve tried building both the HID and HRS examples, I switched to the HRS example since it&amp;#39;s the one in the tutorial and the project files were provided for it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/thread/113951?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 06:01:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:660cdadd-fb24-4ca1-a21c-eb9ef112397f</guid><dc:creator>josh</dc:creator><description>&lt;p&gt;I&amp;#39;ve now tried 3 different versions of the GNU ARM compiler, and I get strange / erratic behavior no matter which one I use.&lt;/p&gt;
&lt;p&gt;I think it has to be something in my configuration of the tools that is causing issues. I&amp;#39;ve tried building the HID example with no changes to the v12.3 SDK, with the exception of updating Makefile.common to properly point to my GNU ARM installation directory.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been through the tutorial for setting up GCC/Eclipse several times and I&amp;#39;ve followed it as exactly as I can, some menus have moved around in the newest Eclipse version, but I&amp;#39;m pretty sure I&amp;#39;ve configured everything correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/thread/113957?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 02:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c66bd55d-e665-456f-b690-2a502a0b5834</guid><dc:creator>josh</dc:creator><description>&lt;p&gt;Haven&amp;#39;t changed them from the default example values:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define APP_ADV_FAST_INTERVAL            0x0028
#define APP_ADV_SLOW_INTERVAL            0x0C80
#define APP_ADV_FAST_TIMEOUT             30    
#define APP_ADV_SLOW_TIMEOUT             180
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I&amp;#39;m definitely getting some bizarre behavior...I&amp;#39;m planning to try a different version of the toolchain, if I&amp;#39;m still having issues I can at least rule that out...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 GCC Issues</title><link>https://devzone.nordicsemi.com/thread/113956?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 02:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d9e6fb2-f159-454d-b973-7443bfc9249e</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;That gcc has been working fine for me for the last few months. Can you check the advertising intervals values in the c file (most likely the main.c module)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>