<?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>How to set GPIOs high before sensor driver initializes?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113410/how-to-set-gpios-high-before-sensor-driver-initializes</link><description>EDIT: Sorry to be posting a lot about my LIS2DH12 problems lately, as I&amp;#39;m advancing somewhat while I have open support threads. Newest thread is here: In preparation of this thread I have hardwired the GPIOs mentioned below to VDD so they should not affect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Aug 2024 08:28:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113410/how-to-set-gpios-high-before-sensor-driver-initializes" /><item><title>RE: How to set GPIOs high before sensor driver initializes?</title><link>https://devzone.nordicsemi.com/thread/497747?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2024 08:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9d868b2-1b58-4fd1-814c-ac54b301e387</guid><dc:creator>HSPalm</dc:creator><description>&lt;p&gt;Hi Naeem, thanks for your reply and sorry for my late feedback. I eventually solved this by restting the device in main() if the sensor init fails. Because then the pins retain their value for the next boot cycle(?). Also it was an issue that that with high capacitance and long rise times on VDD pin driven by GPIO, so&amp;nbsp;the timing of CS/VDD assertion was messed up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set GPIOs high before sensor driver initializes?</title><link>https://devzone.nordicsemi.com/thread/495663?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 14:17:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7e6afe4-ab28-48a6-9693-8f262bd36572</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looks like it should work, but for testing were you able to use the sensor and read from it if you externally set those pins?&lt;/p&gt;
&lt;p&gt;You can also start debugging, and put the breakpoint in the main, and when it reaches that point then measure the voltage on those pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>