<?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>nrf52840 802.15.4 start command</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20884/nrf52840-802-15-4-start-command</link><description>Hi, 
 I&amp;#39;m trying to use the command &amp;quot;mlme_start_req&amp;quot; to setup the device as a pan coordinator to send beacons to the others devices in the network, but after submit the command the callback is not called. For instance, if I don&amp;#39;t set a short address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 May 2017 07:42:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20884/nrf52840-802-15-4-start-command" /><item><title>RE: nrf52840 802.15.4 start command</title><link>https://devzone.nordicsemi.com/thread/81556?ContentTypeID=1</link><pubDate>Thu, 25 May 2017 07:42:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9dea87c-3cd4-494e-a4a0-93a3dbb2a624</guid><dc:creator>Jose</dc:creator><description>&lt;p&gt;Hi Jørgen,&lt;/p&gt;
&lt;p&gt;That makes sense.
Thanks for your time.&lt;/p&gt;
&lt;p&gt;Regards,
José&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 802.15.4 start command</title><link>https://devzone.nordicsemi.com/thread/81555?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 12:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:657af942-f42a-4404-aba7-47a2a98e6656</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi Jose,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for the long delayed response to this issue. We now have a debug setup available, which should reduce debug time on similar cases in the future.&lt;/p&gt;
&lt;p&gt;The reason for this issue is that the parameter &lt;code&gt;startReq&lt;/code&gt; in function &lt;code&gt;a_start()&lt;/code&gt; is not declared static. The pointer to this structure is stored in library’s global data and used for calling the confirmation callback. When the parameter is not declared static, the variable will be out of scope when exiting &lt;code&gt;a_start()&lt;/code&gt;, leading to a Hardfault when  library trying to access callback address.&lt;/p&gt;
&lt;p&gt;Changing your code to this should solve the problem:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void a_start(void * p_data)
{
	static mlme_start_req_t startReq =
	{
		.pan_id  = 0x1234,
		.logical_channel = 17,
		.start_time = 0x000000,
		.beacon_order = 0,
		.superframe_order = 0,
		.pan_coordinator = true,
		.battery_life_extension = false,
		.coord_realignment = false,
	};
	mlme_start_req( &amp;amp;startReq, mlme_start_conf);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Unfortunately it is not documented in the API reference that the MAC parameters need to be declared static.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 802.15.4 start command</title><link>https://devzone.nordicsemi.com/thread/81551?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 14:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fc20f3a-fb0a-4a2d-8907-9dba5e59517e</guid><dc:creator>Jose</dc:creator><description>&lt;p&gt;Uploaded. Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 802.15.4 start command</title><link>https://devzone.nordicsemi.com/thread/81554?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a626a344-804a-4fd6-82f4-b1b98da175c5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Ok, yes I think that will be easier. You can edit your initial post and upload the files as an attachment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 802.15.4 start command</title><link>https://devzone.nordicsemi.com/thread/81553?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77ee7aa0-eaef-4aee-aff5-aeac9760f64d</guid><dc:creator>Jose</dc:creator><description>&lt;p&gt;When I&amp;#39;ve got the error 153, I wasn&amp;#39;t doing anything before calling the &amp;quot;mlme_start_req&amp;quot;. I&amp;#39;m using the same example and I&amp;#39;ve just changed the state machine to just call this action.
But if before I call the &amp;quot;start&amp;quot; action I call the action to define the short address as specified in IEEE Std 802.15.4-2006, section 7.1.14.1.2, the start request never return again. The callback is never called again and the device doesn&amp;#39;t to anything after that point.&lt;/p&gt;
&lt;p&gt;Perhaps if send you the files will be easier for you, how can I send you the files?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 802.15.4 start command</title><link>https://devzone.nordicsemi.com/thread/81552?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0083373-4296-4784-82c9-3470944dd673</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I added your code tho the 802.15.4 example in SDK 13, and I get a callback and status = 236. What else are you doing in your application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>