<?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>Hard Fault on SD functions not in main</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14053/hard-fault-on-sd-functions-not-in-main</link><description>Hello, 
 i have a problem with the PCA10040. I try to set up a ANT Transmit Channel. 
 If &amp;quot;ant_channel_init&amp;quot; is called from main everything works fine. 
 But if it&amp;#39;s called from other c file the Softdevice call &amp;quot;sd_ant_channel_assign&amp;quot; end in hardfault</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 May 2016 09:42:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14053/hard-fault-on-sd-functions-not-in-main" /><item><title>RE: Hard Fault on SD functions not in main</title><link>https://devzone.nordicsemi.com/thread/53739?ContentTypeID=1</link><pubDate>Tue, 24 May 2016 09:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adaefc3d-76ac-4b31-ac22-d2126e9cc18a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;ok usual rules apply, the context you call it from has to be lower priority than the SVC call priority (I don&amp;#39;t know what that is for ANT) else it hardfaults. So this should be pretty easy to fix !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault on SD functions not in main</title><link>https://devzone.nordicsemi.com/thread/53738?ContentTypeID=1</link><pubDate>Tue, 24 May 2016 09:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3638452e-4dc4-4917-b5b4-8771821b85e0</guid><dc:creator>andi</dc:creator><description>&lt;p&gt;Yes Thanks, Sry my fault i changed some parts of my code and didn&amp;#39;t see it was called from SD Interrupt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault on SD functions not in main</title><link>https://devzone.nordicsemi.com/thread/53737?ContentTypeID=1</link><pubDate>Tue, 24 May 2016 09:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e012260-0b67-4f0f-a55b-94a3cb040e9b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;are you calling these functions from an interrupt handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>