fs24: switch debug mode to normal mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

fs24: switch debug mode to normal mode

880 Views
kk211911
Contributor I

hello,        

I tried to get to Normal mode from Debug mode following the Application Note.  But set the WD period to 0x0000 seems not take effect,  it causes the MCU reset continuously. 

kk211911_1-1725266764897.jpegkk211911_2-1725266764903.jpeg

The register value before switch mode:

            REG_M_STATUS:  0x3C05    (Both NORMAL_S and INIT_S is 0x01?

            REG_FS_WDW_CFG: 0x120 :  Default  256ms

            REG_M_SYS1_CFG: 0x4808:   DBG_MODE is set.

            REG_FS_I_WD_CFG: 0x5080

Is there anything missing while switch Debug mode to Normal mode?

 

Thanks.

 

0 Kudos
Reply
2 Replies

853 Views
kk211911
Contributor I

Hi Tomas:

       Thank you very much,  all my test procedures following AN14183 chapter 7.3,  but when i set  WD period to infinite,  it can not  take effect, did i miss any procedure?

kk211911_1-1725327140569.png

 

 

0 Kudos
Reply

863 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Kun,

In Debug mode no watchdog refresh is required as the watchdog is disabled along with other safety features.

When not using the Debug mode, the FS24 needs to be initialized during the first 256ms (INIT state) after power up and the MCU must send a good WD refresh to get out of this INIT state and close it. If the good WD refresh is not sent before those 256ms, the WD error counter is incremented. Incrementing will eventually lead the device to generate RSTB pulses and main state machine transition to Fail-safe state which I guess happens in your case.

So please make sure that you are using the following sequence to get properly to the Normal mode and then periodically refresh the watchdog. 

1.png

I would also recommend you to take a closer look at our AN14183 - FS2400 product guidelines which includes among others a lot of information about various operating modes and code examples like the one above. Please note that this AN14183 is classified as a secure file requiring an NDA.

2.png

BRs, Tomas

 

0 Kudos
Reply