*****************************************************************************
*Detailed Description:
*This example will show you how to configure Sbc_fs23 Driver.
*It initialization of Sbc_fs23 with watchdog window disabled. The Sbc_fs23_InitDevice() must be done within the dedicated 256 ms INIT window.
*It Disable regulator V2, then re-enable it again. FS0b pin is asserted due to V2 Undervoltage reaction setting configured in FailSafe Init Configuration tab.
*If the example runs without errors, the D12 LED on S32K31XEVB-Q100 will light up Green; otherwise, it will light up Red.
*The SPI data between FS23 and S32K311 are captured and attached to the project.
*Use the analog input of a logic analyzer or an oscilloscope to monitor the signals of FS23_V2 (TP27) and FS23_FS0 (TP8) on the KITFS23SKTEVM board.
*------------------------------------------------------------------------------
*Test HW:
* S32K31XEVB-Q100 Board SCH-55131 REV A P32K311HV 0P98C
* KITFS23SKTEVM Dev-kit SCH-53096 REV B2 MFS2320BMBB1EP
* My S32K31XEVB-Q100 has an onboard PFS2320A0L1W1, but Step 13/14 of AN14041 mention that A0 devices are not supported, so S32K311 communicate with the FS23 on the KITFS23SKTEVM.
*Connections:
KITFS23SKTEVM | S32K31XEVB-Q100
------------------------------|--------------------
SPI_CSB J28-2 | J12-5(PTB-17)
SPI_MOSI J29-2 | J12-7(PTB-16)
SPI_SCK J31-2 | J12-11(PTB-14)
SPI_MISO J32-2 | J12.9(PTB-15)
VCC J6-1 | J40-15
GND J6-2 | J40-13
- KITFS23SKTEVM: SW1 - position 2-3 , J30 - ON, J26 5-6 ON, J26 9-10 ON .
- Connect KITFS23SKTEVM Dev-kit and S32K3 MCU via on-board Arduino headers.
*SDK:
* S32K3 RTD 4.0.0 (SW32K3_S32M27x_RTD_R21-11_4.0.0_D2311_DS_updatesite.zip)
* FS23 RTD 1.0.0 (S32K3xx_SBC_FS23_R21-11_1.0.0_D2508_DesignStudio_updatesite.zip)
*Debugger: S32DS 3.5.8, OpenSDA/ PEmicro Multilink Universal FX
*Target: internal_FLASH
*Reference Documentation:
* AN14041 FS23 quick start guide (Rev. 2.0 — 23 January 2025)
* AN14129 FS23 implementation and behaviors (Rev. 2.0 — 13 December 2024)
* FS23, Safety System Basis Chip (SBC) with Power Management, CAN FD and LIN Transceivers Data Sheet (Rev. 8.0 — 30 June 2025)
* RTD_SBC_FS23_UM.pdf C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\SW32K3_FS23_R21-11_1.0.0_D2312\Sbc_fs23_TS_T40D34M10I0R0\doc
* This example is migrated from Sbc_fs23_example_HLD_S32K344. The method of migrating refers to the video "2.S32DS CT MCAL demo porting K344 to K312 based on RTD500": https://community.nxp.com/t5/S32K-Knowledge-Base/S32K3-Tools-Part-How-to-port-RTD-s-existing-MCAL-demo-to-other/ta-p/1966315
*****************************************************************************
* Revision History:
* Ver Date Author Description of Changes
* 0.0 10-26-2025 Robin Shen Initial version
* 0.1 11-21-2025 Robin Shen Upgrade FS23 RTD 1.0.0 from S32K3xx_SBC_FS23_R21-11_1.0.0_DS_updatesite_D2402_updated_D250115.zip to S32K3xx_SBC_FS23_R21-11_1.0.0_D2508_DesignStudio_updatesite.zip
*****************************************************************************

