Hi,
Pre-Information:
In the "safety->STCU2" section of S32K3XXRM, there is a register related to PLL monitoring located at STCU2->RUNSW. According to the description, when our clock configuration uses PLL, we need to enable these two fields.
In the demo provided by S32K3 Safety Peripheral Drivers version 1.0.3 Design : Product Download : Files (flexnetoperations.com), PLL is enabled.
Based on the above information, these two bits should be set to 1 in the STCU2->RUNSW register in the demo.
And in the main.c file of the provided demo, the place where this register is set is in BIST_RUN()->Bist_Specific_Run()->Bist_SelfTestTrigger()->SAFETYBASE_REG_WRITE32(BIST_STCU_RUNSW_REG, BIST_STCU_RUNSW_RUN_BIT);
However, in the case where PLL is enabled in the clock configuration, the library driver provided by SPD does not set these two bits to 1.
1. Is this a design flaw or do users need to manually modify certain code?
已解决! 转到解答。
Hello,
1. Is this a design flaw or do users need to manually modify certain code?
Well, this would be the question to designers of the SW. But for sure if you want run the PLL for BIST, you need to set those bits.
If you like the feedback from SW owners, please submit a ticket at NXP.com so it will reach them.
Best regards,
Peter
Hello,
1. Is this a design flaw or do users need to manually modify certain code?
Well, this would be the question to designers of the SW. But for sure if you want run the PLL for BIST, you need to set those bits.
If you like the feedback from SW owners, please submit a ticket at NXP.com so it will reach them.
Best regards,
Peter