Hi @guoweisun I am having difficulties setting up the S32K344 + FS26 (MFS2613AMDA2AD) combination. The HW design is EVB based, so I can discard issues with the HW setup.
My problem is that I managed to implement the driver in the S32 DS, by adding the Sbc_fs26_ip driver into my MEX file, just following the SBC_fs26_IP example project. The code (left below) is apparently properly initializing the FS26 and properly refreshing the WD, in Debug mode.
eReturnValue = Sbc_fs26_Init(&Sbc_fs26_xConfig);
eReturnValue |= Sbc_fs26_InitDevice();
if(eReturnValue != E_OK)
{
bPass = FALSE; /* Error during initialization. */
}
while (true) {
eReturnValue = Sbc_fs26_WdRefresh();
delay_ms(6);
}
However, when I exit the debug mode, the FS26 seems to keep resetting its output power sources to the S32K344, at a rate that gets slower with the time. Also, it is confusing that I left the FS0B only in all reactions in the Sbc_fs26_ip driver in the S32 DS. This also happens if I disable the Watchdog timer. Do you have any ideas where I can start looking for?
I leave here additional info about the current register values (in Debug mode, since I cannot attach debugger in normal mode due to the device being reset)
FS_SAFE_IOS_1: 0x7000
FS_SAFE_IOS_2: 0xB
FS_DIAG_SAFETY1: 0x103
FS_DIAG_SAFETY2: 0x8


