Request for Technical Guidance — S32K342 Startup Self-Test (LBIST/MBIST/SCST/Lockstep/FCCU) Configur Dear NXP Technical Support Team, I hope this message finds you well. I am currently developing a functional safety application based on the S32K342 microcontroller and would like to request your technical guidance regarding startup self-test configuration and verification. Development Environment: - Target device: S32K342 (package: hdqfp100, 100-pin) - EB tresos Studio: 32.1.4 - Real-Time Drivers (RTD): SW32K3_S32M27x_RTD_R21-11_5.0.0 (TS_T40D34M50I0R0) - Safety Peripheral Drivers (SPD): SW32K3_SPD_1.0.5_D2503 (TS_T40D34M10I5R0) - IDE: S32 Design Studio 3.6.0 Background: My current project was originally created for the S32K344 and later ported to the S32K342. During the migration, I manually corrected the following items: 1. Resource module: changed ResourceSubderivative from s32k344_mapbga257 to s32k342_hdqfp100; 2. ECUId in project preferences: changed from S32K344 to S32K342; 3. MPU memory mapping (Platform module): adjusted Program Flash size from 4 MB to 2 MB; 4. FCCU configuration (eMcem module): removed CM7_1-related DCM fault entries (ITCM/D0TCM/D1TCM multi-bit errors), since S32K342 is a single-core device; 5. Mcu module: removed peripheral instances that are not available on S32K342 (e.g., SXOSC, EMIOS_2, ADC_2, FlexCAN_4/5, LPUART_4–15,LPSPI_4/5, LPCMP_2). Despite these corrections, EB tresos still reports a number of validation errors. In addition, I noticed that the SPD 1.0.5 demo package (S32_SPD_Demo) only provides template projects for S32K344, S32K358, S32K388, and S32K396 —there is no official S32K342 template project, and the EB new-project wizard incorrectly assigns s32k358_mapbga289 to the Resource module even when S32K342 is selected. Questions: 1. Official S32K342 support in SPD 1.0.5 I found Bist_s32k342_hdqfp100.epd, eMcem_s32k342_hdqfp100.epd, and SafetyBase_s32k342_hdqfp100.epd inside the SPD plugins, which suggests S32K342 is supported. Could you confirm whether SPD 1.0.5 officially supports S32K342, and is there a recommended (official) procedure or template for creating an S32K342 SPD project? 2. Startup self-test flow and timing for S32K342 Since S32K342 has a single Cortex-M7 core (unlike the dual-core lockstep S32K344), could you clarify the recommended startup sequence? - Who triggers LBIST/MBIST —the HSE_B firmware or the application-level Bist module? - What is the recommended order (e.g., LBIST →MBIST →RAM initialization →Mcu_Init)? - What are the typical MBIST coverage and startup-time budget for the 256 KB SRAM on S32K342? 3. FCCU fault mapping differences (S32K344 vs. S32K342) Which NCF[0]–NCF[7]DCM fault signals differ between S32K344 and S32K342? In particular: - Was it correct to remove the CM7_1-related DCM faults? - Are signals such as EMAC_FCCU_ERR, AXBS_FCCU_ALARM, and PERIPH_AXBS_ALARM still valid on S32K342? 4. Lockstep configuration and confirmation Does the S32K342 Cortex-M7 run in DCLS (Dual-Core Lockstep) mode? If so, how can I confirm at runtime that Lockstep is enabled, and how are RCCU mismatch errors mapped to the FCCU? 5. SCST (Software Core Self-Test) support Does SPD 1.0.5 provide an SCST library, or is a third-party solution (e.g., Hitex/Suresoft) required? What is NXP's recommended SCST test coverage approach for S32K342? Your guidance on the above points would be greatly appreciated. If additional project files or configuration details would help, please let me know and I will provide them promptly. Thank you very much for your time and support. Best regards, wudidi Re: Request for Technical Guidance — S32K342 Startup Self-Test (LBIST/MBIST/SCST/Lockstep/FCCU) Conf Hi @WuDiDi,
The recommended approach is to create a new project specifically for the S32K342 rather than porting an existing one.
The target derivative can be changed in the Resource module from the default S32K358 to the S32K342.
1.
Yes, SPD 1.0.5 supports the S32K342. Please refer to the SPD 1.0.5 release notes for details.
2.
S32K342 has also CM7_0-CM7_1 in LS like S32K344.
The application code should include the Bist_Run() function, which executes both MBIST and LBIST.
Please also refer to S32K3_SPD_BIST_UM.pdf for additional details and implementation guidance.
Regarding the execution time, please refer to the SPD Quality Package, which can be downloaded together with the SPD release.
The execution time measurements are provided in the S32K3XX_SAF_BIST_ProfileReport.xlsx file included in that package.
3.
Refer to this table:
https://community.nxp.com/t5/S32K-Knowledge-Base/DOC-S32K3x1-S32K3x2-S32K3x4-eMCEM-DCM-Mapping-v1-0-SPD1-0-5/ta-p/2394707
4.
Yes, lockstep is enabled, which can be checked in this register:
Read-Only GPR On Functional Reset 19 (DCMROF19[29])
Again, refer to the above table.
5.
NXP provides SCST library for S32K3xx:
https://www.nxp.com/design/design-center/software/functional-safety-software/structural-core-self-test-scst-library:SCST
Regards,
Daniel
記事全体を表示