Problems with Bist_Run(BIST_SAFETYBOOT_CFG).

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems with Bist_Run(BIST_SAFETYBOOT_CFG).

1,068 Views
brunoGT88
Contributor III

Hello everyone !


I’m using the MR-CANHUBK344 board to develop a VCU solution and I’m finding problems with the BIST self-test, I’m using RTD 4.0.0 and SPD 1.0.5 as recommended , and I’m using the NXP SPD_Demo example as support.
When I initialize the board and read the reset reason, I can read the flag value in Mcu_GetResetReason() == MCU_POWER_ON_RESET, then I call Bist_Run(BIST_SAFETYBOOT_CFG); and the micro reset again, and the expected behavior is the flag now marking Mcu_GetResetReason() == MCU_ST_DONE_RESET, but returns as MCU_POWER_ON_RESET, then calls the Bist_Run again , according to the example of nxp the flow is this:
if (MCU_POWER_ON_RESET == resetReason)
{
#if (BIST_MODULE_ENABLED == 1U)
Bist_Run(BIST_SAFETYBOOT_CFG);
}
else if(MCU_ST_DONE_RESET == resetReason)
{
bistStatus = Bist_GetExecStatus(BIST_SAFETYBOOT_CFG);
....... etc
}

I don’t know if I need to set up something else in the RTD, SPD or MCAL, or do something on some interruption that I’m not looking at.
Following print of what I enabled in the RTD and the SPD:

brunoGT88_0-1764066545762.pngbrunoGT88_1-1764066563759.png



Thank you!

0 Kudos
Reply
4 Replies

983 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @brunoGT88,

What do you see in DCMROPP1-4 registers?

If you want a SAF 1.0.5 EVAL demo project (for S32DS 3.5), I can share it via a support ticket.

https://support.nxp.com/s/?language=en_US

 

Thank you,

BR, Daniel

0 Kudos
Reply

974 Views
brunoGT88
Contributor III

Hi @danielmartynek 

Before and after initializing the MCU with the sequence:

Mcu_Init(&Mcu_Config);
Mcu_InitClock(McuClockSettingConfig_0);
while (MCU_PLL_LOCKED != Mcu_GetPllStatus());
Mcu_DistributePllClock();
Mcu_SetMode(McudeSettingConf_0);

these registers are always 0x00, after I call Bist_Run(BIST_SAFETYBOOT_CFG); the s32k344 alredy resets, I can not see return E_OK or E_NOT_OK and check these registers, you need that me to see the values after it restart, after the call Bist_Run(BIST_SAFETYBOOT_CFG), if yes, I can send by a serial the values and check.

brunoGT88_0-1764185844161.png

 

About the SPD_EVAL package I would like to get, how can we proceed?

0 Kudos
Reply

934 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @brunoGT88,

F_POR has the sources below.

So, I suspected POR_WDG.

danielmartynek_0-1764233007828.png

Anyway, please create a support ticket https://support.nxp.com/s/?language=en_US

You can upload your project there privately, so that I can test it.

Also, I can share the demo there.

 

Regards,

Daniel

0 Kudos
Reply

986 Views
brunoGT88
Contributor III

Can anyone help me?

0 Kudos
Reply