<?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>Application compiles with no errors but still dosen&amp;#39;t work?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25397/application-compiles-with-no-errors-but-still-dosen-t-work</link><description>I am building a Bluetooth Mesh application based on the Mesh Beacon Example , i have written a custom Makefile and got it compiling with no errors. 
 But when Flashing the nRF51422 with the program, nothing happens.
If I build the example in the original</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Oct 2017 14:25:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25397/application-compiles-with-no-errors-but-still-dosen-t-work" /><item><title>RE: Application compiles with no errors but still dosen't work?</title><link>https://devzone.nordicsemi.com/thread/100101?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2017 14:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0438051e-1ef1-4174-bc23-5f1217e7e05a</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;I still think the RAM start address might be a culprit here. Did &lt;code&gt;sd_ble_enable()&lt;/code&gt; return successfully? Have you tried setting a breakpoint on the reset handler and see why it&amp;#39;s resetting (or not)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application compiles with no errors but still dosen't work?</title><link>https://devzone.nordicsemi.com/thread/100098?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 11:06:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d70974b6-a190-4b67-9e9d-98f88d207307</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;in the linker scrip, any thing with &amp;#39;&amp;gt; RAM&amp;#39;  should be changed to &amp;#39;&amp;gt; RAM AT &amp;gt; FLASH&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application compiles with no errors but still dosen't work?</title><link>https://devzone.nordicsemi.com/thread/100100?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 08:18:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21786daa-7c3f-40eb-b0e4-9ab912f552d7</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;No, we&amp;#39;re using CMake to generate our makefiles (or other build files). Main compiler and linker flags for GCC are (from &lt;code&gt;toolchain_gcc.cmake&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;Compiler flags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;-mthumb
-mcpu=cortex-m0
-mfloat-abi=soft
-mabi=aapcs
-ffunction-sections
-fdata-sections
-fno-strict-aliasing
-fshort-enums
-fno-builtin
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Linker flags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;-Xlinker -Map=$(MAP_FILE_OUTPUT)
-L$(LINKER_SEARCH_PATH)
-T$(TARGET_SPECIFIC_LINKER_FILE)
-Wl,--gc-sections
--specs=nano.specs
-mthumb
-mcpu=cortex-m0
-mabi=aapcs
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;-Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application compiles with no errors but still dosen't work?</title><link>https://devzone.nordicsemi.com/thread/100099?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 08:11:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2110de7-2099-4f9e-a1da-a0a50d4f4392</guid><dc:creator>S&amp;#248;renHN</dc:creator><description>&lt;p&gt;Are there any makefiles in the Mesh SDK in the same style as from the normal SDK&amp;#39;s?
If so, could someone direct me to them?
I am wondering which flags are used for compiling and linking the example projects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application compiles with no errors but still dosen't work?</title><link>https://devzone.nordicsemi.com/thread/100105?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 07:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dda4af9-e004-4de6-83d3-fd72c296215f</guid><dc:creator>S&amp;#248;renHN</dc:creator><description>&lt;p&gt;Yes, is use these commands when flashing the chip:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog -f NRF51 --program softdevice.hex --chiperase --verify
nrfjprog -f NRF51 --program app.hex --verify
nrfjprog -f NRF51 --reset
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application compiles with no errors but still dosen't work?</title><link>https://devzone.nordicsemi.com/thread/100104?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 19:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0448778c-fc7a-4312-9e48-4b14bd8ebed5</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Have you flashed the Softdevice first ? Looks like the Softdevice is missing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application compiles with no errors but still dosen't work?</title><link>https://devzone.nordicsemi.com/thread/100102?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 13:36:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b35ed10-a4a4-452b-a074-bf964ca47784</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Ok, the linker file from the mesh SDK should contain&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
    FLASH (rx)      : ORIGIN = 0x0001b000, LENGTH = 0x1F000
    RAM (rwx)       : ORIGIN = 0x200022D8, LENGTH = 0x5A28
    /* Reserve space for the bootloader */
    /* CORE_BL_RAM (rw): ORIGIN = 0x20007D00, LENGTH = 0x2FC */
}

INCLUDE &amp;quot;nrf5x_common.ld&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Your program is probably in a continuous reset loop. You could try starting GDB (or another debugger) and add a breakpoint to the reset handler and step until you hit whatever is causing you application to hardfault/reset?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application compiles with no errors but still dosen't work?</title><link>https://devzone.nordicsemi.com/thread/100097?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 07:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b178b0d-33e6-404b-9daf-dc0d1d80c75d</guid><dc:creator>S&amp;#248;renHN</dc:creator><description>&lt;p&gt;Yes, I ran the linker file from SDK 12.1 and Mesh SDK through a text comparison program, and they came out identical.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application compiles with no errors but still dosen't work?</title><link>https://devzone.nordicsemi.com/thread/100096?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 14:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5582185-e48c-44ac-b05e-0bcd29e9b65e</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Did you try using the linker file from the Mesh SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application compiles with no errors but still dosen't work?</title><link>https://devzone.nordicsemi.com/thread/100103?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 12:46:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:958c8657-b8da-4aff-bf5e-eedf76d215be</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Hi Søren,&lt;/p&gt;
&lt;p&gt;Which SoftDevice and what nRF51422 variant? Try using the linker files under &lt;code&gt;mesh_sdk/toolchain/&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;-Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>