<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[EWDG可以配置超时中断通知吗？]]></title><description><![CDATA[<p dir="auto">YTM32B1MC03H0MLHT的EWDG喂狗超时可以配置中断通知吗？我看MCAL中PlatformlsrConfig里面没有EWDG，但是wdg1里面有Wdg Interrupt Enable使能，实测喂狗超时有复位，EWDG_OUT_b有被拉低，但是没有进入Wdg_180_Inst1_Callback，EWDG的CTRL寄存器如图<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1720/37c489aa-0a0d-497b-8aa2-c339048ebdfb.png" alt="86a1c786-31f9-4bb6-9a71-60f1a40126fd-c73dbaa7-1e0d-4d9b-b4fa-bb9f83c256cb.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/topic/1995/ewdg可以配置超时中断通知吗</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 18:03:55 GMT</lastBuildDate><atom:link href="https://forum.ytmicro.com/topic/1995.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Jun 2026 06:12:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 11:12:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/242">RuiXu</a> 在 <a href="/post/8663">EWDG可以配置超时中断通知吗？</a> 中说：</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/1298">swust</a> 在 <a href="/post/8662">EWDG可以配置超时中断通知吗？</a> 中说：</p>
<blockquote>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1298/3b889d52-8084-4cdc-9898-fda2700ddc67.png" alt="image.png" class=" img-fluid img-markdown" />配置了也可以，tmr自动喂狗</p>
</blockquote>
<p dir="auto">demo里面这样是可以，但是如果wdg0没有被及时喂狗，触发wdg0第一次中断的时候，由于wdg0和wdg1共用一个中断服务函数，并且ewdg没有标志位可以判断，所以代码里判断的是使能位，这个默认是开启的，并且判定成功后会清除这一位（关闭中断）。导致后来即使wdg1超时了，仍然没有中断产生。如果确定配置以及代码逻辑没有问题，那可以排查一下这个问题，先关闭wdg0，只测试wdg1</p>
</blockquote>
<p dir="auto">找出来问题了，port配置了PTE4的EWDG_OUT_b为输出模式，EWDG的中断Wdg_180_Inst1_Callback进不去，硬件设计EWDG_OUT_b引脚是和RESET关联的，喂狗超时触发EWDG_OUT_b拉低RESET复位，将port的PTE4配置为输入模式后EWDG的超时中断Wdg_180_Inst1_Callback可以进去，但是无法触发WDG_OUT_b拉低RESET复位，有什么办法可以将port配置PTE4的EWDG_OUT_b为输出模式又可以在EWDG超时时进入中断完成超时操作吗？<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1720/83d7fcd5-c173-41a6-8076-2ceb6a004646.png" alt="5aa658e0-169b-4179-97bc-1f470d2e8e7b-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/post/8665</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8665</guid><dc:creator><![CDATA[chenchao]]></dc:creator><pubDate>Wed, 03 Jun 2026 11:12:31 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 09:43:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/1298">swust</a> 在 <a href="/post/8662">EWDG可以配置超时中断通知吗？</a> 中说：</p>
<blockquote>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1298/3b889d52-8084-4cdc-9898-fda2700ddc67.png" alt="image.png" class=" img-fluid img-markdown" />配置了也可以，tmr自动喂狗</p>
</blockquote>
<p dir="auto">demo里面这样是可以，但是如果wdg0没有被及时喂狗，触发wdg0第一次中断的时候，由于wdg0和wdg1共用一个中断服务函数，并且ewdg没有标志位可以判断，所以代码里判断的是使能位，这个默认是开启的，并且判定成功后会清除这一位（关闭中断）。导致后来即使wdg1超时了，仍然没有中断产生。如果确定配置以及代码逻辑没有问题，那可以排查一下这个问题，先关闭wdg0，只测试wdg1</p>
]]></description><link>https://forum.ytmicro.com/post/8663</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8663</guid><dc:creator><![CDATA[RuiXu]]></dc:creator><pubDate>Wed, 03 Jun 2026 09:43:32 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 09:35:44 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1298/3b889d52-8084-4cdc-9898-fda2700ddc67.png" alt="image.png" class=" img-fluid img-markdown" />配置了也可以，tmr自动喂狗</p>
]]></description><link>https://forum.ytmicro.com/post/8662</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8662</guid><dc:creator><![CDATA[swust]]></dc:creator><pubDate>Wed, 03 Jun 2026 09:35:44 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 09:30:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/1720">chenchao</a> 在 <a href="/post/8650">EWDG可以配置超时中断通知吗？</a> 中说：</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/1298">swust</a> 在 <a href="/post/8648">EWDG可以配置超时中断通知吗？</a> 中说：</p>
<blockquote>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1298/08f006be-7962-4bd1-a4a9-ed6a5420a9ad.png" alt="image.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">platform这边使能了的，目前问题是wdg喂狗超时可以正常进入中断Wdg_180_Inst0_Callback然后复位，EWDG喂狗超时不进入Wdg_180_Inst1_Callback，但是可以正常复位拉低EWDG_OUT，这是我的Yct文件，麻烦可以帮忙看下是哪的问题吗，谢谢<a href="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1720/66282a06-505f-40a7-8901-5fd00910b9fa.yct" rel="nofollow ugc">S52_Lamp.yct</a> <img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1720/04c5648e-769f-4374-8582-696b3655c215.png" alt="858f70b4-df56-4b3a-a2b5-acc865c6bbb9-0a65c018-5461-4fb6-94e3-d288f9d80bba.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">测试的时候，wdg0也配置了吗？wdg0是怎么喂狗的</p>
]]></description><link>https://forum.ytmicro.com/post/8661</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8661</guid><dc:creator><![CDATA[RuiXu]]></dc:creator><pubDate>Wed, 03 Jun 2026 09:30:39 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 09:25:02 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1298/2996ff9e-ce09-417c-a80a-ee80cf9ec8c3.png" alt="image.png" class=" img-fluid img-markdown" />能进，配置没动，main加了几行</p>
]]></description><link>https://forum.ytmicro.com/post/8660</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8660</guid><dc:creator><![CDATA[swust]]></dc:creator><pubDate>Wed, 03 Jun 2026 09:25:02 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 09:14:32 GMT]]></title><description><![CDATA[<p dir="auto">目前看下来配置没问题。可否提供工程？</p>
]]></description><link>https://forum.ytmicro.com/post/8658</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8658</guid><dc:creator><![CDATA[RuiXu]]></dc:creator><pubDate>Wed, 03 Jun 2026 09:14:32 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 08:41:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/1298">swust</a> 在 <a href="/post/8648">EWDG可以配置超时中断通知吗？</a> 中说：</p>
<blockquote>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1298/08f006be-7962-4bd1-a4a9-ed6a5420a9ad.png" alt="image.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">platform这边使能了的，目前问题是wdg喂狗超时可以正常进入中断Wdg_180_Inst0_Callback然后复位，EWDG喂狗超时不进入Wdg_180_Inst1_Callback，但是可以正常复位拉低EWDG_OUT，这是我的Yct文件，麻烦可以帮忙看下是哪的问题吗，谢谢<a href="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1720/66282a06-505f-40a7-8901-5fd00910b9fa.yct" rel="nofollow ugc">S52_Lamp.yct</a> <img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1720/04c5648e-769f-4374-8582-696b3655c215.png" alt="858f70b4-df56-4b3a-a2b5-acc865c6bbb9-0a65c018-5461-4fb6-94e3-d288f9d80bba.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/post/8650</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8650</guid><dc:creator><![CDATA[chenchao]]></dc:creator><pubDate>Wed, 03 Jun 2026 08:41:09 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 08:26:45 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1298/08f006be-7962-4bd1-a4a9-ed6a5420a9ad.png" alt="image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/post/8648</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8648</guid><dc:creator><![CDATA[swust]]></dc:creator><pubDate>Wed, 03 Jun 2026 08:26:45 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 08:24:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/242">RuiXu</a> 在 <a href="/post/8641">EWDG可以配置超时中断通知吗？</a> 中说：</p>
<blockquote>
<p dir="auto">另外看看Callback是否被成功配置<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/242/6d29302e-e847-4981-99b3-588f617dd1c3.png" alt="image.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">调试看没有进入中断服务函数Ewdg_Lld_IrqHandler，Callback是成功配置的，目前设置的是1s喂狗超时，测试时关闭200ms喂狗，可以复位拉低EWDG_OUT_b。<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1720/472d068d-ae30-45f6-a3af-352a9b743fb8.png" alt="b3a79a24-89f5-49e4-9f60-1b554bb2d634-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/post/8647</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8647</guid><dc:creator><![CDATA[chenchao]]></dc:creator><pubDate>Wed, 03 Jun 2026 08:24:20 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 07:37:41 GMT]]></title><description><![CDATA[<p dir="auto">另外看看Callback是否被成功配置<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/242/6d29302e-e847-4981-99b3-588f617dd1c3.png" alt="image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/post/8641</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8641</guid><dc:creator><![CDATA[RuiXu]]></dc:creator><pubDate>Wed, 03 Jun 2026 07:37:41 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 07:33:50 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/242/8d4a7066-6034-431c-8408-125149eed154.png" alt="image.png" class=" img-fluid img-markdown" /> 可以调试看看EWDG_OUT_B脚拉低时是否进入中断服务函数</p>
]]></description><link>https://forum.ytmicro.com/post/8640</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8640</guid><dc:creator><![CDATA[RuiXu]]></dc:creator><pubDate>Wed, 03 Jun 2026 07:33:50 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 07:28:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/242">RuiXu</a> 在 <a href="/post/8638">EWDG可以配置超时中断通知吗？</a> 中说：</p>
<blockquote>
<p dir="auto">WDG和EWDG用的同一个中断向量号，需要开启wdg的中断</p>
</blockquote>
<p dir="auto">WDG中断开启了，测试WDG超时会进入Wdg_180_Inst0_Callback，但是EWDG喂狗超时不进Wdg_180_Inst1_Callback，可以正常复位拉低EWDG_OUT_B脚</p>
]]></description><link>https://forum.ytmicro.com/post/8639</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8639</guid><dc:creator><![CDATA[chenchao]]></dc:creator><pubDate>Wed, 03 Jun 2026 07:28:10 GMT</pubDate></item><item><title><![CDATA[Reply to EWDG可以配置超时中断通知吗？ on Wed, 03 Jun 2026 07:18:17 GMT]]></title><description><![CDATA[<p dir="auto">WDG和EWDG用的同一个中断向量号，需要开启wdg的中断</p>
]]></description><link>https://forum.ytmicro.com/post/8638</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8638</guid><dc:creator><![CDATA[RuiXu]]></dc:creator><pubDate>Wed, 03 Jun 2026 07:18:17 GMT</pubDate></item></channel></rss>