<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: iMX8M Nano: SNVS LPGPR in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1401754#M186010</link>
    <description>&lt;P&gt;Could you comment on how you enabled access to privileged registers when using HAB features?&lt;/P&gt;&lt;P&gt;Because I can write to e.g. the LPGPR using the method described in this thread, but only when HAB is disabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 13:35:21 GMT</pubDate>
    <dc:creator>wouher</dc:creator>
    <dc:date>2022-01-19T13:35:21Z</dc:date>
    <item>
      <title>iMX8M Nano: SNVS LPGPR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1356258#M181603</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to write a value to SNVS LPGPR0 register on i.MX8M Nano SoC.&lt;/P&gt;&lt;P&gt;However register doesn't accept my values, in fact&amp;nbsp; they always stay at 0x00000000 (default).&lt;/P&gt;&lt;P&gt;Here is my test procedure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;U-Boot &amp;gt; mw 0x30370068 0xDEADBEEF  
U-Boot &amp;gt; md 0x30370068 1           
30370068: 00000000                               ....
U-Boot &amp;gt; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Where address 0x30370068 is the address of SNVS_LP General Purpose Register 0 (legacy alias) (LPGPR0_legacy_alias).&lt;/P&gt;&lt;P&gt;The same can be observed if using registers "SNVS_LP General Purpose Registers 0 .. 3 (LPGPR0 - LPGPR3)":&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;U-Boot &amp;gt; mw 0x30370090 0xDEADBEEF 
U-Boot &amp;gt; mw 0x30370094 0xDEADBEEF
U-Boot &amp;gt; mw 0x30370098 0xDEADBEEF
U-Boot &amp;gt; mw 0x3037009C 0xDEADBEEF
U-Boot &amp;gt; md 0x30370090 4         
30370090: 00000000 00000000 00000000 00000000    ................
U-Boot &amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;The same works like a charm on i.MX6UL board which should have the same SNVS controller?&lt;/P&gt;&lt;P&gt;ps.: here is a dump of entire controller registers:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;30370000: 00000001 00002020 00000000 00000000    ....  ..........
30370010: 00000000 8000bd00 80000000 00000000    ................
30370020: 00000000 00000000 00000000 00000000    ................
30370030: 00000000 00000000 00000020 00000000    ........ .......
30370040: 00000000 00000000 00000000 00000008    ................
30370050: 00000000 00000000 00000000 00000000    ................
30370060: 00000000 00000000 00000000 00000000    ................
30370070: 00000000 00000000 00000000 00000000    ................
30370080: 00000000 00000000 00000000 00000000    ................
30370090: 00000000 00000000 00000000 00000000    ................&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 07:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1356258#M181603</guid>
      <dc:creator>wooosaiiii</dc:creator>
      <dc:date>2021-10-15T07:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Nano: SNVS LPGPR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1356525#M181630</link>
      <description>&lt;P&gt;Hi Primoz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;recommended to use SNVS LPGPR alias registers @ 0x90 - 0x9C.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 13:27:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1356525#M181630</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-10-15T13:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Nano: SNVS LPGPR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1356961#M181692</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37066"&gt;@igorpadykov&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I tried using registers&amp;nbsp;&lt;SPAN&gt;SNVS LPGPR alias registers @ 0x90 - 0x9C, see:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The same can be observed if using registers "SNVS_LP General Purpose Registers 0 .. 3 (LPGPR0 - LPGPR3)":&lt;/P&gt;&lt;PRE&gt;U-Boot &amp;gt; mw 0x30370090 0xDEADBEEF 
U-Boot &amp;gt; mw 0x30370094 0xDEADBEEF
U-Boot &amp;gt; mw 0x30370098 0xDEADBEEF
U-Boot &amp;gt; mw 0x3037009C 0xDEADBEEF
U-Boot &amp;gt; md 0x30370090 4         
30370090: 00000000 00000000 00000000 00000000    ................
U-Boot &amp;gt;&lt;/PRE&gt;&lt;P&gt;without success...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RM says that those registers cannot be programmed when:&lt;/P&gt;&lt;P&gt;When GPR_SL or GPR_HL bit is set, the register cannot be programmed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you tell which register has those two bits as we cannot find them in the RM?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 06:30:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1356961#M181692</guid>
      <dc:creator>wooosaiiii</dc:creator>
      <dc:date>2021-10-18T06:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Nano: SNVS LPGPR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1357111#M181703</link>
      <description>&lt;P&gt;&amp;gt;Can you tell which register has those two bits as we cannot find them in the RM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;they can be found in SNVS_HP Lock Register (HPLR), SNVS_LP Lock Register (LPLR) described in&lt;/P&gt;
&lt;P&gt;&lt;A id="relatedDocsClick_2" href="https://www.nxp.com/webapp/Download?colCode=IMX8MNSRM&amp;amp;appType=moderatedWithoutFAE" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Security Reference Manual for i.MX 8M Nano Applications Processor&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 09:35:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1357111#M181703</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-10-18T09:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Nano: SNVS LPGPR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1364179#M182372</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/115618"&gt;@wooosaiiii&lt;/a&gt; ,&lt;BR /&gt;Have you found solution for your issue?&lt;BR /&gt;We are facing the same problem on i.MX8M&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 18:30:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1364179#M182372</guid>
      <dc:creator>M_J</dc:creator>
      <dc:date>2021-10-31T18:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Nano: SNVS LPGPR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1364834#M182455</link>
      <description>&lt;P&gt;Yes, we have solved the issue.&lt;/P&gt;&lt;P&gt;Basically, you need to write the init value and clear the low-voltage event:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#define IMX8M_SNVS_LPLVDR	(0x30370064)
#define IMX8M_SNVS_LPSR 	(0x3037004C)
#define IMX8M_SNVS_LPLVDR_INIT_VAL	(0x41736166)
#define IMX8M_SNVS_LPSR_CLEAR_EVENT	(0x00000008)	

     /**
	 * First write initialisation value to SNVS LPLVDR Digital Low-Voltage
	 * Detector Register and then clear the Low-Voltage Event Record in the
	 * SNVS LPSR Status Register
	 */
	*(volatile uint32_t *) IMX8M_SNVS_LPLVDR = IMX8M_SNVS_LPLVDR_INIT_VAL;
	*(volatile uint32_t *) IMX8M_SNVS_LPSR = IMX8M_SNVS_LPSR_CLEAR_EVENT;&lt;/LI-CODE&gt;&lt;P&gt;Last but not least, if you're using HAB features, you will need to enable access to privileged registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 05:48:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1364834#M182455</guid>
      <dc:creator>wooosaiiii</dc:creator>
      <dc:date>2021-11-02T05:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Nano: SNVS LPGPR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1401754#M186010</link>
      <description>&lt;P&gt;Could you comment on how you enabled access to privileged registers when using HAB features?&lt;/P&gt;&lt;P&gt;Because I can write to e.g. the LPGPR using the method described in this thread, but only when HAB is disabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 13:35:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1401754#M186010</guid>
      <dc:creator>wouher</dc:creator>
      <dc:date>2022-01-19T13:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Nano: SNVS LPGPR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1401776#M186012</link>
      <description>&lt;P&gt;We haven't done anything special, just write a value under casted GPR register.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 14:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1401776#M186012</guid>
      <dc:creator>M_J</dc:creator>
      <dc:date>2022-01-19T14:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Nano: SNVS LPGPR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1402262#M186040</link>
      <description>&lt;P&gt;Call init_snvs() in&amp;nbsp;&lt;SPAN&gt;arch_cpu_init().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Use&amp;nbsp;init_snvs() from i.MX7 arch.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 05:02:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1402262#M186040</guid>
      <dc:creator>wooosaiiii</dc:creator>
      <dc:date>2022-01-20T05:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Nano: SNVS LPGPR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1402431#M186056</link>
      <description>&lt;P&gt;Thanks, that's it&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 08:25:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-SNVS-LPGPR/m-p/1402431#M186056</guid>
      <dc:creator>wouher</dc:creator>
      <dc:date>2022-01-20T08:25:34Z</dc:date>
    </item>
  </channel>
</rss>

