<?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>Would it be possible to output BSD trace to SDHC file system?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47866/would-it-be-possible-to-output-bsd-trace-to-sdhc-file-system</link><description>I&amp;#39;m looking through the NRFX library and specifically the CONFIG_BSD_LIBRARY_TRACE_ENABLED feature and would like to know if it would be possible to redirect the trace output to a file on an SDHC card. Our device is going to be difficult to access and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jun 2019 08:49:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47866/would-it-be-possible-to-output-bsd-trace-to-sdhc-file-system" /><item><title>RE: Would it be possible to output BSD trace to SDHC file system?</title><link>https://devzone.nordicsemi.com/thread/190439?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 08:49:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a779548-06c1-4fd8-8393-a57ab0dd3c49</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You&amp;#39;re right, the bsd_os.c file is a port file, so this one will be different for other implementations than ncs.&lt;/p&gt;
&lt;p&gt;You can switch out the content of this function to fit your needs:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/lib/bsdlib/bsd_os.c#L425"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/lib/bsdlib/bsd_os.c#L425&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The function itself will be called by the bsdlib when&amp;nbsp;CONFIG_BSD_LIBRARY_TRACE_ENABLED is set.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that you have to use DMA with this function, as it is quite a high throughput.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>