I referred to the Demo program on the official website(Embedded SW: FS65/FS45 SW Driver | NXP Semiconductors) and ported it to the S32K314 MCU. In the chip initialization function, whenever the FS65_WD_Refresh() function is executed, the MCU resets directly. I measured the RESTB pin and found that whenever the FS65_WD_Refresh() function is executed, the RSTB pin sends a low-level pulse of 10ms. But isn't this function supposed to be a watchdog feeding operation? Why does it perform a reset operation?
已解决! 转到解答。
---上电读到MODE 为 Normal mode。请问这是什么原因,读取MODE寄存器之前是否还需要进行其他的操作?
---
一开始上电就是初始化阶段不可能是normal模式的。
12.1.6 Normal
In this mode, all device functions are available. This mode is entered by a SPI command from the INIT phase by writing in the INIT_INT register. While in normal mode, the device can be set to low-power mode (LPOFF) using secured SPI command.
读取MODE寄存器是让你了解SBC在哪个阶段,不是什么特殊的步骤
如您所说,把WD disable 之后,回读WD_WINDOW 结果为0x03(默认值),后看了代码发现应该是没有配置INIT和 WD相关寄存器,却执行FS65_WD_Refresh() 导致的异常复位。通过分析Demo 代码可以看出,上电后首先读取 MODE 寄存器获取当前MODE,如果返回是 INIT mode才会对INIT 和WD相关寄存器进行配置。从Debug仿真结果来看,上电读到MODE 为 Normal mode。请问这是什么原因,读取MODE寄存器之前是否还需要进行其他的操作?
---上电读到MODE 为 Normal mode。请问这是什么原因,读取MODE寄存器之前是否还需要进行其他的操作?
---
一开始上电就是初始化阶段不可能是normal模式的。
12.1.6 Normal
In this mode, all device functions are available. This mode is entered by a SPI command from the INIT phase by writing in the INIT_INT register. While in normal mode, the device can be set to low-power mode (LPOFF) using secured SPI command.
读取MODE寄存器是让你了解SBC在哪个阶段,不是什么特殊的步骤