<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>NULL doesn&amp;#39;t match !conn</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88181/null-doesn-t-match-conn</link><description>Hello community! 
 
 I know this sounds almost impossible... but it&amp;#39;s happening 
 
 I&amp;#39;m debugging an application based on peripheral_uart. When I call 
 
 
 bt_nus_send(NULL, buf-&amp;gt;data, buf-&amp;gt;len); 
 
 
 if I debug this sentence in bluetooth\services\nus</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 07 Jun 2022 05:38:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88181/null-doesn-t-match-conn" /><item><title>RE: NULL doesn't match !conn</title><link>https://test-devzone.nordicsemi.com/thread/371015?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 05:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ecb16e5-399e-4cde-ae5e-6e9484fcbfd0</guid><dc:creator>user107544</dc:creator><description>&lt;p&gt;Hi Einar:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for my late reply. It&amp;#39;s probably as you say, a problem on debug optimizations, although I&amp;#39;m not sure 100% Anyway I don&amp;#39;t have this problem anymore.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;David.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NULL doesn't match !conn</title><link>https://test-devzone.nordicsemi.com/thread/369002?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 11:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:097a42eb-dde7-4cb2-a38b-a9958904c20f</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;You write that you see this when debugging. Could it be simply that you have built your application with optimization and is stepping or similar? In that case the machine code will not match the C code, and things will look strange. If so, I suggest enabling debug optimization (&lt;code&gt;CONFIG_DEBUG_OPTIMIZATIONS=y&lt;/code&gt;). If that is not the issue, then&amp;nbsp;it would be interesting if you could share a project and instructions on how to reproduce so that I can have a look on my end.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>