<?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>When during initialization should I run MAGPIO command?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82341/when-during-initialization-should-i-run-magpio-command</link><description>Hi, 
 I have a custom 9160/mfw1.3.1 board with a set of matching networks and I need to setup MAGPIO to control these. This will only be used for cellular, not for GPS. 
 When I run AT%XMAGPIO=… prior to calling lte_lc_connect_async, it returns with an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Dec 2021 12:43:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82341/when-during-initialization-should-i-run-magpio-command" /><item><title>RE: When during initialization should I run MAGPIO command?</title><link>https://devzone.nordicsemi.com/thread/342320?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 12:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd252738-e222-415a-9e08-0e519558eea1</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the late reply.&lt;/p&gt;
[quote user=""]When I run AT%XMAGPIO=… prior to calling lte_lc_connect_async, it returns with an error.[/quote]
&lt;p&gt;Does the error happens before or after you call lte_lc_connect_async? And can you share the log output with us as well?&lt;/p&gt;
&lt;p&gt;It should be OK to run AT%XMAGPIO without CFUN=1, a quick test here seems to work alright:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;The AT host sample started
AT+CFUN?
+CFUN: 0
OK
AT%XMAGPIO=1,1,1,7,1,746,803,2,698,748,2,1710,2200,3,824,894,4,880,960,5,791,849,7,1565,1586
OK&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>