<?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>i.MX ProcessorsのトピックRe: iMX8QM SCU WatchDog</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044874#M153857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;that looks like it is used to disable the watchdog in case of fault, to investigate issues in debug builds. Isn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2020 09:10:58 GMT</pubDate>
    <dc:creator>fmonte</dc:creator>
    <dc:date>2020-07-06T09:10:58Z</dc:date>
    <item>
      <title>iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044865#M153848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I'm trying to enable the Watchdog timer on the SCU of a custom iMX8QM design.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The iMX8QM Reference Manual (rev F) states that:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;13.9.3 Application Information&lt;BR /&gt;The watchdog is enabled by default after reset. [...]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By printing the Watchdog Control and Status Register (CS) in the SCU board_init() I get the value:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;WDOG_SC-&amp;gt;CS = 0x25E2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means WDOG is &lt;STRONG&gt;enabled&lt;/STRONG&gt; with interrupts, clock source is LPO_clk, configuration successfull, locked.&lt;BR /&gt;However, if I print several times with delays the WD Counter Register (WDOG_SC-&amp;gt;&lt;STRONG&gt;CNT&lt;/STRONG&gt;), the value &lt;STRONG&gt;is always 0x0&lt;/STRONG&gt;, like if the clock it is not running. This configuration, which is the default one as in WDOG32_GetDefaultConfig(), can be applied with success to the WDOG of the Cortex-M4 0. In this case everything runs as expected, the LPO clock correctly increments the CNT register. (The only weird thing is that the Reference Manual states that the CM40 is enabled by default, which is not true: it has to be enabled explicitly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I reconfigure the SCU WDOG to use the Internal Clock instead of the LPO one, the CNT register runs and the WDOG triggers.&lt;BR /&gt;However, no one will refresh the SCU WDOG, and the SCU gets rebooted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;- The SCU lpo_clk seems not working, while Cortex-M4-0 lpo_clk works. Is that expected?&lt;BR /&gt;&amp;nbsp;- Is it true that the SCU WDOG is automatically started after a reset? (That's not true for C-M4-0)&lt;BR /&gt;&amp;nbsp;- Who kicks the SCU WDOG and at which frequency? That's in the prebuilt SCU part?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tested SCU versions: 1.2.x, 1.5.0&amp;nbsp; (with the same outcome)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 08:40:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044865#M153848</guid>
      <dc:creator>fmonte</dc:creator>
      <dc:date>2020-06-30T08:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044866#M153849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Francesco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid it is not possible to reconfigure SCU wdog as SCU manages all functions of processor,&lt;/P&gt;&lt;P&gt;it is designed exclusevly for internal purposes&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://imxdev.gitlab.io/tutorial/System_controller_unit_introduction_for_imx_8qxp_mek/" title="https://imxdev.gitlab.io/tutorial/System_controller_unit_introduction_for_imx_8qxp_mek/"&gt;System Controller Unit (SCU) Introduction for i.MX 8QXP MEK - i.MXDev Blog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 23:29:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044866#M153849</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-06-30T23:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044867#M153850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor, thank you for your answer.&lt;/P&gt;&lt;P&gt;I know the SCU FW has an internal scope. I just would like to know if the SCU Watchdog is correctly enabled (and refreshed) by the SCU FW. By reading the internal registers it looks something is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 07:27:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044867#M153850</guid>
      <dc:creator>fmonte</dc:creator>
      <dc:date>2020-07-01T07:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044868#M153851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Francesco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCU wdog has some write-once bits and since it is used at early boot time&lt;/P&gt;&lt;P&gt;by ROM and SECO seems it is not possible to fully reprogram it for own needs.&lt;/P&gt;&lt;P&gt;In general one can look at wdog driver sources:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/watchdog/imx8_wdt.c?h=imx_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/watchdog/imx8_wdt.c?h=imx_4.19.35_1.1.0"&gt;imx8_wdt.c\watchdog\drivers - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sect.13.7 (SVC) Timer Service sc_fw_api_qm_b0.pdf document included in&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=L5.4.24_2.1.0_SCFWKIT-1.5.0&amp;amp;appType=license"&gt;SCFW Porting Kit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Pay attention to next description:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The following pads are part of the SCU and the application will not be able to access them:&lt;/P&gt;&lt;P&gt;- SC_P_SCU_PMIC_MEMC_ON&lt;BR /&gt; - SC_P_SCU_WDOG_OUT"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-340335"&gt;System Controller Firmware 101 - Getting started&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 10:52:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044868#M153851</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-07-01T10:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044869#M153852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;I do not want to reprogram the SCU WDOG for my needs, I just would like it to be working so in case the SCU FW gets stuck it will reboot the board (or the M4 core).&lt;/P&gt;&lt;P&gt;So that's clear that an application has no access to SC_P_SCU_WDOG_OUT, and that's not what I want to do. I just would like that the SCU FW will correctly configure, start and refresh the SCU WD. That's not the case, and you can verify it by dumping the WDOG_SC-&amp;gt;CS and WDOG_SC-&amp;gt;CNT registers in the SCU board.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 11:22:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044869#M153852</guid>
      <dc:creator>fmonte</dc:creator>
      <dc:date>2020-07-01T11:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044870#M153853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Francesco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1268824?commentID=1268824#comment-1268824" title="https://community.nxp.com/message/1268824?commentID=1268824#comment-1268824"&gt;https://community.nxp.com/message/1268824?commentID=1268824#comment-1268824&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 13:29:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044870#M153853</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-07-01T13:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044871#M153854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor&lt;/P&gt;&lt;P&gt;the link points to a private git server. Assuming the code is &lt;A href="https://source.codeaurora.org/external/imx/imx-test/tree/test/wdog?h=imx_4.14.98_2.0.0_ga"&gt;the same on CodeAurora&lt;/A&gt;, that directory contains only the Linux watchdog module test (which tests the partition watchdog, which is software according to the SCU porting guide, and not related to the WDOG_SC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 14:16:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044871#M153854</guid>
      <dc:creator>fmonte</dc:creator>
      <dc:date>2020-07-01T14:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044872#M153855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the RM I have found this information:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;5.7.3.2 Watchdog&lt;BR /&gt;By default, ROM will disable the SCU Watchdog (WDOG) unless the fuse&lt;BR /&gt;WDOG_ENABLE is blown. The timeout can be selected by using the fuse&lt;BR /&gt;WDOG_TIMEOUT_SELECT. [...]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I did not blown the WDOG_ENABLE fuse, is that the reason the SCU WDOG does not count?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2020 15:02:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044872#M153855</guid>
      <dc:creator>fmonte</dc:creator>
      <dc:date>2020-07-03T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044873#M153856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Francesco&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one can look at wdog functions in scfw :&lt;/P&gt;&lt;P&gt;../platformboard/mx8qm_mek/board.c&lt;/P&gt;&lt;P&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fsps%2Fdownload%2Flicense.jsp%3FcolCode%3DL4.14.98_2.0.0_SCFWKIT-1.2" rel="nofollow" target="_blank"&gt;SCFW Porting Kit&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114605i7CF99F10809DA4FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2020 23:37:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044873#M153856</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-07-03T23:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044874#M153857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;that looks like it is used to disable the watchdog in case of fault, to investigate issues in debug builds. Isn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:10:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044874#M153857</guid>
      <dc:creator>fmonte</dc:creator>
      <dc:date>2020-07-06T09:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM SCU WatchDog</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044875#M153858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Francesco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.162 sc_fw_port.pdf (included in &lt;A href="https://www.nxp.com/webapp/Download?colCode=L5.4.3_1.0.0_SCFWKIT-1.2.10.1&amp;amp;appType=license"&gt;SCFW Porting Kit&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114714iECEBC4D37709BF0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.jpg" alt="pastedImage_3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 10:55:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-SCU-WatchDog/m-p/1044875#M153858</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-07-06T10:55:51Z</dc:date>
    </item>
  </channel>
</rss>

