<?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>InvenSense motion driver porting problem: Undefined symbol _MLPrintLog (referred from data_builder.o).</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30618/invensense-motion-driver-porting-problem-undefined-symbol-_mlprintlog-referred-from-data_builder-o</link><description>Hello everyone, 
 I am currently working on porting the InvenSense motion driver 6.12 to nrf52840pdk. 
 I followed porting guide provided by InvenSense. However, I met the error when I included eMPL_outputs.c, the error message shows as below: 
 I&amp;#39;ve</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Feb 2018 02:10:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30618/invensense-motion-driver-porting-problem-undefined-symbol-_mlprintlog-referred-from-data_builder-o" /><item><title>RE: InvenSense motion driver porting problem: Undefined symbol _MLPrintLog (referred from data_builder.o).</title><link>https://devzone.nordicsemi.com/thread/121456?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 02:10:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f21eac3-9f36-4a0d-9e13-b4d56d15ce97</guid><dc:creator>YooLoo</dc:creator><description>&lt;p&gt;Dear Edvin,&lt;/p&gt;
&lt;p&gt;Thank you for your reply! You are absolutely right, I did not notice the function was not defined since it is not mentioned&amp;nbsp;in the porting guide.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I followed your advice and define the _MLPringLog() in my own c file by rewriting the function definition&amp;nbsp;found in &amp;quot;&lt;span&gt;log_stm32.c&amp;quot;, using NRF_LOG_INFO(), and then my project can compile without errors.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: InvenSense motion driver porting problem: Undefined symbol _MLPrintLog (referred from data_builder.o).</title><link>https://devzone.nordicsemi.com/thread/121231?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 11:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a80142-3719-4b4b-be5d-d8bb2f633982</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The reason this error appears when you add eMPL_outputs.c is that this file has #include &amp;quot;data_builder.h&amp;quot;. data_builder.c has #include &amp;quot;log.h&amp;quot;, which has a function, _MLPrintLog() which is not defined anywhere in your project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see that this function is defined two places in your project folder. &amp;quot;log_msp430.c&amp;quot; and &amp;quot;log_stm32.c&amp;quot;.&amp;nbsp;I can&amp;#39;t find anything for Nordic&amp;#39;s nRF.&lt;/p&gt;
&lt;p&gt;What you can do is to create a new file, e.g. log_nrf52.c, where you forward the _MLPrintLog() function to NRF_LOG_INFO() to see the output. Remember to enable logging in sdk_config.h.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>