<?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>Error when trying to enable Fast Pair related to the DULT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113865/error-when-trying-to-enable-fast-pair-related-to-the-dult</link><description>Hi, 
 
 I am having some issues when trying to enable the Fast Pair when executing the bt_fast_pair_enable(). I used the debugger to determine where it&amp;#39;s failing: 
 
 
 
 For some strange reason, cur_user is not set to NULL when initializing and therefore</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Aug 2024 15:18:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113865/error-when-trying-to-enable-fast-pair-related-to-the-dult" /><item><title>RE: Error when trying to enable Fast Pair related to the DULT</title><link>https://devzone.nordicsemi.com/thread/498108?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 15:18:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:523881c8-8475-4228-b636-c573f821fdb5</guid><dc:creator>hz-fran</dc:creator><description>&lt;p&gt;Hi Amanda,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your reply. Initially, I thought the same as you, but yesterday I checked that&amp;#39;s the only time that the&amp;nbsp;&lt;code&gt;dult_user_register&lt;/code&gt;&lt;span&gt;&amp;nbsp;is called (by the&amp;nbsp;&lt;code&gt;dult_init&lt;/code&gt;&amp;nbsp;function). I have just rechecked with the debugger.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, I just noticed something weird when checking the log output that I included in my ticket. Even though, I see&amp;nbsp;in the debugger that it fails when executing the&amp;nbsp;&lt;code&gt;dult_user_register&lt;/code&gt;&amp;nbsp;function, I don&amp;#39;t see the log associated in the output &amp;quot;&lt;/span&gt;&lt;span&gt;LOG_ERR&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;DULT user already registered&amp;quot;&lt;/span&gt;&lt;span&gt;);. Therefore, I think that the&amp;nbsp;&lt;code&gt;dult_user_register&lt;/code&gt;&amp;nbsp;is not failing and the debugger is glitching a bit.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The real problem seemed to be that in my application the battery level was not set before the enable operation. I just set it using&amp;nbsp;&lt;/span&gt;bt_fast_pair_fmdn_battery_level_set and the issue is solved!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Francisco.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to enable Fast Pair related to the DULT</title><link>https://devzone.nordicsemi.com/thread/498090?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 13:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a8d11f0-59fe-4db8-ad71-e96630713256</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Is it possible that &lt;code&gt;dult_user_register&lt;/code&gt;&amp;nbsp;is called somewhere else in your application?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;If the &lt;code&gt;cur_user&lt;/code&gt; atomic_ptr is already set here, I guess that &lt;code&gt;dult_user_register&lt;/code&gt; was called before in another place. It would be good to use the debugger and verify who called the function before Fast Pair.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>