FS23: reset time question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FS23: reset time question

ソリューションへジャンプ
1,207件の閲覧回数
gumu
Contributor V

Hello,

I would like to ask a question regarding the system reset time when the watchdog is not refreshed. The configured watchdog is:

 

/* WdWindowReg */
((uint16)0x0000U)
| SBC_FS23_FS_WDW_PERIOD_64MS
| SBC_FS23_FS_WDW_RECOVERY_64MS
//| SBC_FS23_FS_WDW_EN_MASK
| SBC_FS23_FS_WDW_REC_EN_MASK

 

After the system exits the init phase normally, I measured the system restart waveform while not refreshing the watchdog in the task, and the waveform indicates that the reboot time is approximately 340ms. Could you please explain how to calculate the 340ms time in the current configuration?

gumu_0-1731412342980.png

Later, I tried to disable WDW_REC_EN, but I found that the experimental phenomenon remained the same, and the reboot time was still around 340ms.

Thanks!

0 件の賞賛
返信
1 解決策
1,181件の閲覧回数
JozefKozon
NXP TechSupport
NXP TechSupport

Hello Gumu,

please refer to the sections 19.2.1.2 and 19.2.2 in the full FS23 datasheet. By incorrect or none Watchdog refresh, Watchdog error counter is incremented by 2. By default the Watchdog error counter limit is set to 6. To reach the limit three incorrect or none watchdog refreshes are needed. Please check the WD_ERR_LIMIT[1:0] bits setting. Have you left them in default value 6? The green waveform in your scope is from the RSTB pin, right? 

If you have left the WD_ERR_LIMIT[1:0] to 6, then three incorrect or none WD refreshes would be needed (3*64ms=192ms), if to 8 then four (4*64ms=256ms).  

Then if the WD recovery is set to 64ms, this would add to the time above. Please check the WDW_REC_EN bit setting. Have you set it to 1? For the MCU fault recovery strategy please refer to the section 19.2.5. 

Please check how have you set the FCCUx error impact configuration. Have you left it to default? If yes, please probe the FS0B pin. To compare it with the RSTB pin. When the WD_ERR_LIMIT[1:0] has reached it's maximum value, the FS0B should be pulled low and Error phase should start. Please refer to the Figure 45. 

With Best Regards,

Jozef

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,182件の閲覧回数
JozefKozon
NXP TechSupport
NXP TechSupport

Hello Gumu,

please refer to the sections 19.2.1.2 and 19.2.2 in the full FS23 datasheet. By incorrect or none Watchdog refresh, Watchdog error counter is incremented by 2. By default the Watchdog error counter limit is set to 6. To reach the limit three incorrect or none watchdog refreshes are needed. Please check the WD_ERR_LIMIT[1:0] bits setting. Have you left them in default value 6? The green waveform in your scope is from the RSTB pin, right? 

If you have left the WD_ERR_LIMIT[1:0] to 6, then three incorrect or none WD refreshes would be needed (3*64ms=192ms), if to 8 then four (4*64ms=256ms).  

Then if the WD recovery is set to 64ms, this would add to the time above. Please check the WDW_REC_EN bit setting. Have you set it to 1? For the MCU fault recovery strategy please refer to the section 19.2.5. 

Please check how have you set the FCCUx error impact configuration. Have you left it to default? If yes, please probe the FS0B pin. To compare it with the RSTB pin. When the WD_ERR_LIMIT[1:0] has reached it's maximum value, the FS0B should be pulled low and Error phase should start. Please refer to the Figure 45. 

With Best Regards,

Jozef

 

0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-1992827%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFS23%3A%E3%83%AA%E3%82%BB%E3%83%83%E3%83%88%E6%99%82%E9%96%93%E3%81%AE%E8%B3%AA%E5%95%8F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1992827%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%3CSPAN%3E%E3%82%A6%E3%82%A9%E3%83%83%E3%83%81%E3%83%89%E3%83%83%E3%82%B0%E3%81%8C%E6%9B%B4%E6%96%B0%E3%81%95%E3%82%8C%E3%81%AA%E3%81%84%E5%A0%B4%E5%90%88%E3%81%AE%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%83%AA%E3%82%BB%E3%83%83%E3%83%88%E6%99%82%E9%96%93%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E8%B3%AA%E5%95%8F%E3%81%97%E3%81%9F%E3%81%84%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E8%A8%AD%E5%AE%9A%E6%B8%88%E3%81%BF%E3%81%AE%E3%82%A6%E3%82%A9%E3%83%83%E3%83%81%E3%83%89%E3%83%83%E3%82%B0%E3%81%AF%E6%AC%A1%E3%81%AE%E3%81%A8%E3%81%8A%E3%82%8A%E3%81%A7%E3%81%99%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3E%2F*%20WdWindowReg%20*%2F%0A((uint16)0x0000U)%0A%7C%20SBC_FS23_FS_WDW_PERIOD_64MS%0A%7C%20SBC_FS23_FS_WDW_RECOVERY_64MS%0A%2F%2F%7C%20SBC_FS23_FS_WDW_EN_MASK%0A%7C%20SBC_FS23_FS_WDW_REC_EN_MASK%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3E%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%81%8C%E5%88%9D%E6%9C%9F%E5%8C%96%E3%83%95%E3%82%A7%E3%83%BC%E3%82%BA%E3%82%92%E6%AD%A3%E5%B8%B8%E3%81%AB%E7%B5%82%E4%BA%86%E3%81%97%E3%81%9F%E5%BE%8C%E3%80%81%E3%82%BF%E3%82%B9%E3%82%AF%E3%81%A7%E3%82%A6%E3%82%A9%E3%83%83%E3%83%81%E3%83%89%E3%83%83%E3%82%B0%E3%82%92%E3%83%AA%E3%83%95%E3%83%AC%E3%83%83%E3%82%B7%E3%83%A5%E3%81%9B%E3%81%9A%E3%81%AB%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E5%86%8D%E8%B5%B7%E5%8B%95%E6%B3%A2%E5%BD%A2%E3%82%92%E6%B8%AC%E5%AE%9A%E3%81%97%E3%81%9F%E3%81%A8%E3%81%93%E3%82%8D%E3%80%81%E6%B3%A2%E5%BD%A2%E3%81%AF%E5%86%8D%E8%B5%B7%E5%8B%95%E6%99%82%E9%96%93%E3%81%8C%E7%B4%84340ms%E3%81%A7%E3%81%82%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E7%A4%BA%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E7%8F%BE%E5%9C%A8%E3%81%AE%E3%82%B3%E3%83%B3%E3%83%95%E3%82%A3%E3%82%AE%E3%83%A5%E3%83%AC%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7340ms%E3%81%AE%E6%99%82%E9%96%93%E3%82%92%E8%A8%88%E7%AE%97%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%82%92%E6%95%99%E3%81%88%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22gumu_0-1731412342980.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22gumu_0-1731412342980.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310048i7AB63AC681EFE056%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22gumu_0-1731412342980.png%22%20alt%3D%22gumu_0-1731412342980.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E3%81%9D%E3%81%AE%E5%BE%8C%E3%80%81WDW_REC_EN%E3%82%92%E7%84%A1%E5%8A%B9%E3%81%AB%E3%81%97%E3%81%A6%E3%81%BF%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E5%AE%9F%E9%A8%93%E7%8F%BE%E8%B1%A1%E3%81%AF%E5%A4%89%E3%82%8F%E3%82%89%E3%81%9A%E3%80%81%E5%86%8D%E8%B5%B7%E5%8B%95%E6%99%82%E9%96%93%E3%81%AF%E3%81%BE%E3%81%A0%E7%B4%84340ms%E3%81%A7%E3%81%82%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%EF%BC%81%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1993377%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%97%A5%E6%99%82%3AFS23%3A%E3%83%AA%E3%82%BB%E3%83%83%E3%83%88%E6%99%82%E9%96%93%E3%81%AE%E8%B3%AA%E5%95%8F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1993377%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Gumu%2C%3C%2FP%3E%0A%3CP%3E%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B319.2.1.2%E3%82%92%E5%8F%82%E7%85%A7%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84FS23%20%E3%81%AE%E5%AE%8C%E5%85%A8%E3%83%87%E3%83%BC%E3%82%BF%E3%82%B7%E3%83%BC%E3%83%88%E3%81%AB%E3%81%AF%2019.2.2%20%E3%81%8C%E5%90%AB%E3%81%BE%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E3%82%A6%E3%82%A9%E3%83%83%E3%83%81%E3%83%89%E3%83%83%E3%82%B0%E6%9B%B4%E6%96%B0%E3%81%8C%E6%AD%A3%E3%81%97%E3%81%8F%E3%81%AA%E3%81%84%E3%81%8B%E3%80%81%E3%81%BE%E3%81%A3%E3%81%9F%E3%81%8F%E6%9B%B4%E6%96%B0%E3%81%95%E3%82%8C%E3%81%AA%E3%81%84%E3%81%A8%E3%80%81%E3%82%A6%E3%82%A9%E3%83%83%E3%83%81%E3%83%89%E3%83%83%E3%82%B0%E3%82%A8%E3%83%A9%E3%83%BC%E3%82%AB%E3%82%A6%E3%83%B3%E3%82%BF%E3%81%8C2%E3%81%9A%E3%81%A4%E5%A2%97%E5%8A%A0%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E3%81%A7%E3%81%AF%E3%80%81%E3%82%A6%E3%82%A9%E3%83%83%E3%83%81%E3%83%89%E3%83%83%E3%82%B0%E3%82%A8%E3%83%A9%E3%83%BC%E3%82%AB%E3%82%A6%E3%83%B3%E3%82%BF%E3%81%AE%E5%88%B6%E9%99%90%E3%81%AF%206%20%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E3%81%93%E3%81%AE%E5%88%B6%E9%99%90%E3%81%AB%E9%81%94%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%80%81%E3%82%A6%E3%82%A9%E3%83%83%E3%83%81%E3%83%89%E3%83%83%E3%82%B0%E3%81%AE%E6%9B%B4%E6%96%B0%E3%81%8C%203%20%E5%9B%9E%E6%AD%A3%E3%81%97%E3%81%8F%E3%81%AA%E3%81%84%E3%81%8B%E3%80%81%E3%81%BE%E3%81%A3%E3%81%9F%E3%81%8F%E8%A1%8C%E3%82%8F%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82WD_ERR_LIMIT%5B1%3A0%5D%E3%83%93%E3%83%83%E3%83%88%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E5%80%A4%E3%81%AE6%E3%81%AE%E3%81%BE%E3%81%BE%E3%81%AB%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8B%3F%E3%82%B9%E3%82%B3%E3%83%BC%E3%83%97%E3%81%AE%E7%B7%91%E8%89%B2%E3%81%AE%E6%B3%A2%E5%BD%A2%E3%81%AFRSTB%E3%83%94%E3%83%B3%E3%81%8B%E3%82%89%E3%81%AE%E3%82%82%E3%81%AE%E3%81%A7%E3%81%99%E3%82%88%E3%81%AD%3F%3C%2FP%3E%0A%3CP%3EWD_ERR_LIMIT%5B1%3A0%5D%E3%82%926%E3%81%AE%E3%81%BE%E3%81%BE%E3%81%AB%E3%81%97%E3%81%9F%E5%A0%B4%E5%90%88%E3%81%AF%E3%80%813%E5%9B%9E%E3%81%AE%E8%AA%A4%E3%81%A3%E3%81%9FWD%E6%9B%B4%E6%96%B0%E3%81%8C%E5%BF%85%E8%A6%81%E3%81%AB%E3%81%AA%E3%82%8B%E3%81%8B%E3%80%81%E3%81%BE%E3%81%A3%E3%81%9F%E3%81%8FWD%E6%9B%B4%E6%96%B0%E3%81%8C%E5%BF%85%E8%A6%81%E3%81%AB%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93(3%20*%2064ms%20%3D%20192ms)%E3%80%818%E3%81%AE%E5%A0%B4%E5%90%88%E3%81%AF4%E5%9B%9E(4%20*%2064ms%20%3D%20256ms)%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%AC%A1%E3%81%AB%E3%80%81WD%E3%83%AA%E3%82%AB%E3%83%90%E3%83%AA%E3%81%8C64ms%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E5%A0%B4%E5%90%88%E3%80%81%E3%81%93%E3%82%8C%E3%81%AF%E4%B8%8A%E8%A8%98%E3%81%AE%E6%99%82%E9%96%93%E3%81%AB%E8%BF%BD%E5%8A%A0%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82WDW_REC_EN%E3%83%93%E3%83%83%E3%83%88%E8%A8%AD%E5%AE%9A%E3%82%92%E3%81%94%E7%A2%BA%E8%AA%8D%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%821%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8B%3FMCU%E3%81%AE%E9%9A%9C%E5%AE%B3%E5%9B%9E%E5%BE%A9%E6%88%A6%E7%95%A5%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AF%E3%80%81%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B319.2.5%E3%82%92%E5%8F%82%E7%85%A7%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FP%3E%0A%3CP%3EFCCUx%E3%82%A8%E3%83%A9%E3%83%BC%E5%BD%B1%E9%9F%BF%E8%A8%AD%E5%AE%9A%E3%81%AE%E8%A8%AD%E5%AE%9A%E6%96%B9%E6%B3%95%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E3%81%AE%E3%81%BE%E3%81%BE%E3%81%AB%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8B%3F%E3%81%AF%E3%81%84%E3%81%AE%E5%A0%B4%E5%90%88%E3%81%AF%E3%80%81FS0B%E3%83%94%E3%83%B3%E3%82%92%E3%83%97%E3%83%AD%E3%83%BC%E3%83%96%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82RSTB%E3%83%94%E3%83%B3%E3%81%A8%E6%AF%94%E8%BC%83%E3%81%97%E3%81%BE%E3%81%99%E3%80%82WD_ERR_LIMIT%5B1%3A0%5D%E3%81%8C%E6%9C%80%E5%A4%A7%E5%80%A4%E3%81%AB%E9%81%94%E3%81%97%E3%81%9F%E3%82%89%E3%80%81FS0B%E3%82%92%E3%83%AD%E3%83%BC%E3%81%AB%E3%83%97%E3%83%AB%E3%83%80%E3%82%A6%E3%83%B3%E3%81%97%E3%80%81%E3%82%A8%E3%83%A9%E3%83%BC%E3%83%95%E3%82%A7%E3%83%BC%E3%82%BA%E3%82%92%E9%96%8B%E5%A7%8B%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E5%9B%B345%E3%82%92%E5%8F%82%E7%85%A7%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%97%E3%81%BE%E3%81%99%E3%80%81%3C%2FP%3E%0A%3CP%3EJozef%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E