<?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>nRF5_SDK_16 : &amp;quot;double&amp;quot;/&amp;quot;float&amp;quot; mismatch BUG in &amp;quot;NRF_LOG_INTERNAL_MODULE()&amp;quot; and &amp;quot;nrf_fprintf_fmt()&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122265/nrf5_sdk_16-double-float-mismatch-bug-in-nrf_log_internal_module-and-nrf_fprintf_fmt</link><description>The functions “ nrf_log_frontend_std_...() ” called by “ NRF_LOG_INTERNAL_MODULE(...) ” use only 4-byte (uint32_t) arguments, which is not suitable for arguments of type “double”. (See: \components\libraries\log\src\nrf_log_frontend.c) And further, when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jun 2025 13:30:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122265/nrf5_sdk_16-double-float-mismatch-bug-in-nrf_log_internal_module-and-nrf_fprintf_fmt" /><item><title>RE: nRF5_SDK_16 : "double"/"float" mismatch BUG in "NRF_LOG_INTERNAL_MODULE()" and "nrf_fprintf_fmt()"</title><link>https://devzone.nordicsemi.com/thread/539400?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2025 13:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a610bd9d-4e1a-481b-9ca6-495f8e1ad153</guid><dc:creator>dwm</dc:creator><description>&lt;p&gt;Thanks for your support, Vidar. &lt;br /&gt;Didn&amp;#39;t know about the &lt;strong&gt;NRF_LOG_FLOAT_MARKER&lt;/strong&gt;() / &lt;strong&gt;NRF_LOG_FLOAT&lt;/strong&gt;() macros. I don&amp;#39;t think I&amp;#39;ll use them, though.&lt;br /&gt;The ticket can be closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5_SDK_16 : "double"/"float" mismatch BUG in "NRF_LOG_INTERNAL_MODULE()" and "nrf_fprintf_fmt()"</title><link>https://devzone.nordicsemi.com/thread/539317?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2025 07:47:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:578130a2-330c-43a1-b9eb-5e57e552e4bd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for reporting. This looks like it may be a valid fix. However, the %f specifier is not intended to be used with the logger module. It also only support float32 numbers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1750059977208v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/lib_nrf_log.html"&gt;https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/lib_nrf_log.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use sprintf() from the standard lib if you need to work around&amp;nbsp;this limitation.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>