<?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>Weak Alias in nRF5 SDK for Mesh v0.10.1 DFU?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26380/weak-alias-in-nrf5-sdk-for-mesh-v0-10-1-dfu</link><description>Hello, 
 I am working with the nRF-SDK-for-Mesh v0.10.1 I am able to compile and run everything fine. I am trying to use the &amp;quot;serial&amp;quot; example and perform a DFU, however the DFU functions in&amp;quot;nrf_mesh_weak.c&amp;quot; are getting linked instead of the real ones</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Nov 2017 13:18:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26380/weak-alias-in-nrf5-sdk-for-mesh-v0-10-1-dfu" /><item><title>RE: Weak Alias in nRF5 SDK for Mesh v0.10.1 DFU?</title><link>https://devzone.nordicsemi.com/thread/103809?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2017 13:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e566fe92-7b75-4598-9806-6ce2747bf7e6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Line 126 is a check for the state of the event .&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why it would crash, but I think there will be some conflict integrating DFU and serial example together as both will use UART interface.&lt;/p&gt;
&lt;p&gt;I would suggest to test first with the light control examples to get familiar with the DFU interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak Alias in nRF5 SDK for Mesh v0.10.1 DFU?</title><link>https://devzone.nordicsemi.com/thread/103811?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 16:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c64358aa-6a7a-42e9-95ec-6b744e116212</guid><dc:creator>Jason Peterson</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Here it is, thanks for all the help!&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/usr/local/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-addr2line -e ./examples/serial/serial_nrf51422_xxAC_s130_2.0.1.elf 0x00027776
    /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/mesh/core/src/timer_scheduler.c:126
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak Alias in nRF5 SDK for Mesh v0.10.1 DFU?</title><link>https://devzone.nordicsemi.com/thread/103810?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 14:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e032d6f-2b35-4ccf-829a-436c1749bb4a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jason,&lt;/p&gt;
&lt;p&gt;Could you use addr2line.exe to check which function cause the issue ? It should be something like &lt;code&gt;addr2line -e filename.elf 0x00027776&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak Alias in nRF5 SDK for Mesh v0.10.1 DFU?</title><link>https://devzone.nordicsemi.com/thread/103808?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 17:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33980dd7-a8cf-4a21-ae24-766f4da30f1f</guid><dc:creator>Jason Peterson</dc:creator><description>&lt;p&gt;I found what was causing the &amp;quot;weak alias&amp;quot; to be included.  The &amp;quot;examples/serial/CMakeLists.txt&amp;quot; file did not include &amp;quot;${DFU_SOURCE_FILES}&amp;quot; I added it as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;add_executable(${target}
    &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/src/main.c&amp;quot;
    &amp;quot;${MBTLE_SOURCE_DIR}/examples/nrf_mesh_sdk.c&amp;quot;
    ${PROV_PROVISIONER_SOURCE_FILES}
    ${PROV_PROVISIONEE_SOURCE_FILES}
    ${PROV_COMMON_SOURCE_FILES}
    ${ACCESS_SOURCE_FILES}
    ${SERIAL_SOURCE_FILES}
    ${DFU_SOURCE_FILES}
    ${WEAK_SOURCE_FILES}
    ${${PLATFORM}_SOURCE_FILES})
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After rebuilding with &amp;quot;${DFU_SOURCE_FILES}&amp;quot; I get the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;t:     183592&amp;gt;, main.c,   66, ----- Bluetooth Mesh Serial Interface Application -----
&amp;lt;t:     216385&amp;gt;, nrf_mesh_sdk.c,  181, Initializing softdevice
&amp;lt;t:          4&amp;gt;, nrf_mesh_sdk.c,  122, Initializing SoftDevice...
&amp;lt;t:         21&amp;gt;, nrf_mesh_sdk.c,  131, Ram base: 0x200022D8
&amp;lt;t:         90&amp;gt;, nrf_mesh_sdk.c,  140, sd_ble_enable: app_ram_base should be adjusted to 0x20001900
&amp;lt;t:       1417&amp;gt;, nrf_mesh_sdk.c,   78, MESH ASSERT at 0x00027776
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here is the backtrace:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Temporary breakpoint 1, main () at /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/examples/serial/src/main.c:59
59	{
(gdb) continue
Continuing.
backtrace
^C
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0001b40e in sleep_forever (pc=pc@entry=161654) at /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/examples/nrf_mesh_sdk.c:64
64	    while (pc)
(gdb) backtrace
#0  0x0001b40e in sleep_forever (pc=pc@entry=161654) at /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/examples/nrf_mesh_sdk.c:64
#1  0x0001b472 in mesh_assert_handler (pc=161654) at /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/examples/nrf_mesh_sdk.c:79
#2  0x0002777e in add_to_add_list (p_evt=0x20003884 &amp;lt;m_timer&amp;gt;) at /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/mesh/core/src/timer_scheduler.c:126
#3  timer_sch_schedule (p_timer_evt=p_timer_evt@entry=0x20003884 &amp;lt;m_timer&amp;gt;) at /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/mesh/core/src/timer_scheduler.c:252
#4  0x00027bfe in ticker_init () at /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/mesh/core/src/ticker.c:71
#5  0x0002711e in nrf_mesh_init (p_init_params=p_init_params@entry=0x20007cd0) at /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/mesh/core/src/nrf_mesh.c:159
#6  0x0001b910 in mesh_core_setup () at /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/examples/nrf_mesh_sdk.c:196
#7  0x0001b250 in main () at /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/examples/serial/src/main.c:78
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This looks related to my other question here now:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/175630/nrf5-sdk-for-mesh-v0101dfu-hangs/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>