Problems with Bist_Run(BIST_SAFETYBOOT_CFG).

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problems with Bist_Run(BIST_SAFETYBOOT_CFG).

1,155 次查看
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 项奖励
回复
4 回复数

1,070 次查看
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 项奖励
回复

1,061 次查看
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 项奖励
回复

1,021 次查看
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 项奖励
回复

1,073 次查看
brunoGT88
Contributor III

Can anyone help me?

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2248320%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBist_Run(BIST_SAFETYBOOT_CFG)%20%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%82%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248320%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A4%A7%E5%AE%B6%E5%A5%BD%20%EF%BC%81%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20MR-CANHUBK344%20%E6%9D%BF%E5%BC%80%E5%8F%91%E6%95%B4%E8%BD%A6%E6%8E%A7%E5%88%B6%E5%99%A8VCU%20%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%8C%E5%8F%91%E7%8E%B0%E4%BA%86%20BIST%20%E8%87%AA%E6%B5%8B%E5%AD%98%E5%9C%A8%E9%97%AE%E9%A2%98%EF%BC%8C%E6%88%91%E6%8C%89%E7%85%A7%E5%BB%BA%E8%AE%AE%E4%BD%BF%E7%94%A8%20RTD%204.0.0%20%E5%92%8C%20SPD%201.0.5%EF%BC%8C%E6%88%91%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%E6%81%A9%E6%99%BA%E6%B5%A6%20SPD_Demo%20%E7%A4%BA%E4%BE%8B%E4%BD%9C%E4%B8%BA%E6%94%AF%E6%8C%81%E3%80%82%3CBR%20%2F%3E%E5%BD%93%E6%88%91%E5%88%9D%E5%A7%8B%E5%8C%96%E6%9D%BF%E5%B9%B6%E8%AF%BB%E5%8F%96%20RESET%20%E5%8E%9F%E5%9B%A0%E6%97%B6%EF%BC%8C%E6%88%91%E5%8F%AF%E4%BB%A5%E8%AF%BB%E5%8F%96%20mcu_getResetreason%20()%20%3D%3D%20MCU_POWER_ON_RESET%20%E4%B8%AD%E7%9A%84%E6%A0%87%E5%BF%97%E5%80%BC%EF%BC%8C%E7%84%B6%E5%90%8E%E6%88%91%E8%B0%83%E7%94%A8%20Bist_Run%20(BIST_SAFETYBOOT_CFG)%EF%BC%9B%E7%84%B6%E5%90%8E%E5%86%8D%E6%AC%A1%E8%BF%9B%E8%A1%8C%E5%BE%AE%20RESET%EF%BC%8C%E9%A2%84%E6%9C%9F%E7%9A%84%E8%A1%8C%E4%B8%BA%E6%98%AF%E7%8E%B0%E5%9C%A8%E6%A0%87%E8%AE%B0%20mcu_getResetreason%20()%20%3D%3D%20MCU_ST_DONE_RESET%EF%BC%8C%E4%BD%86%E4%BB%A5%20MCU_POWER_DONE_RESET%20%E7%9A%84%E5%BD%A2%E5%BC%8F%E8%BF%94%E5%9B%9E%20_ON_RESET%EF%BC%8C%E7%84%B6%E5%90%8E%E5%86%8D%E6%AC%A1%E8%B0%83%E7%94%A8%20Bist_Run%EF%BC%8C%E6%A0%B9%E6%8D%AE%E6%81%A9%E6%99%BA%E6%B5%A6%E7%9A%84%E7%A4%BA%E4%BE%8B%EF%BC%8C%E6%B5%81%E7%A8%8B%E6%98%AF%E8%BF%99%E6%A0%B7%E7%9A%84%EF%BC%9Aif%20(MCU_POWER_ON_RESET%20%3D%3D%20resetReason)%20%7B%23if%20(BIST_MODULE_ENABLED%20%3D%3D%201U)%20Bist_Run%20(BIST_SAFETYBOOT_CFG)%3B%7D%20%E5%90%A6%E5%88%99%E5%A6%82%E6%9E%9C%20(MCU_ST_DONE_%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3ERESET%20%3D%3D%20%E9%87%8D%E7%BD%AE%E5%8E%9F%E5%9B%A0)%20%3CBR%20%2F%3E%20%7BbistStat%20%3CBR%20%2F%3E%20us%20%3D%20bist_getExecStatus%20(BIST_SAFETYBOOT_CFG)%3B...%20%E7%AD%89%E7%AD%89%7D%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%E6%88%91%E4%B8%8D%E7%9F%A5%E9%81%93%E6%88%91%E6%98%AF%E5%90%A6%E9%9C%80%E8%A6%81%E5%9C%A8%20RTD%E3%80%81SPD%20%E6%88%96%20MCAL%20%E4%B8%AD%E5%AE%89%E8%A3%85%E5%85%B6%E4%BB%96%E5%86%85%E5%AE%B9%EF%BC%8C%E6%88%96%E8%80%85%E5%9C%A8%E6%9F%90%E4%B8%AA%E4%B8%AD%E6%96%AD%E6%97%B6%E5%81%9A%E4%B8%80%E4%BA%9B%E6%88%91%E6%B2%A1%E6%83%B3%E5%88%B0%E7%9A%84%E4%BA%8B%E6%83%85%E3%80%82%3CBR%20%2F%3E%E4%BB%A5%E4%B8%8B%E6%98%AF%E6%88%91%E5%9C%A8%20RTD%20%E5%92%8C%20SPD%20%E4%B8%AD%E5%90%AF%E7%94%A8%E7%9A%84%E6%89%93%E5%8D%B0%E5%86%85%E5%AE%B9%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22brunoGT88_0-1764066545762.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brunoGT88_0-1764066545762.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brunoGT88_0-1764066545762.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brunoGT88_0-1764066545762.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367152i756B121A7AB479A8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22brunoGT88_0-1764066545762.png%22%20alt%3D%22brunoGT88_0-1764066545762.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22brunoGT88_1-1764066563759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brunoGT88_1-1764066563759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brunoGT88_1-1764066563759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brunoGT88_1-1764066563759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367153iBABAEE17AAF8CB10%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22brunoGT88_1-1764066563759.png%22%20alt%3D%22brunoGT88_1-1764066563759.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249721%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20with%20Bist_Run(BIST_SAFETYBOOT_CFG).%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249721%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F160001%22%20target%3D%22_blank%22%3E%40%E4%B8%B9%E5%B0%BC%E5%B0%94-%E9%A9%AC%E8%92%82%E5%86%85%E5%85%8B%3C%2FA%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%E4%BD%BF%E7%94%A8%E5%BA%8F%E5%88%97%E5%88%9D%E5%A7%8B%E5%8C%96%20MCU%20%E4%B9%8B%E5%89%8D%E5%92%8C%E4%B9%8B%E5%90%8E%EF%BC%9AMcu%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20_Init%20(%26amp%3B%20Mcu_Config)%EF%BC%9Bmcu_initClock%20(mcuClockSettingConfig_0)%EF%BC%9B%3CBR%20%2F%3Ewhile%20(MCU_PLL_LOCKED!%20%3CBR%20%2F%3E%3D%20mcu_getpllStatus%20()%EF%BC%9Bmcu_dist%20%3CBR%20%2F%3E%20ributepllClock%20()%EF%BC%9Bmcu_%20%3CBR%20%2F%3E%20setMode%20(mcudeSettingConf_0)%EF%BC%9B%E5%9C%A8%E6%88%91%E8%B0%83%E7%94%A8%20Bist_Run%20(BIST_SAFETYBOOT_CFG)%20%E4%B9%8B%E5%90%8E%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%BF%99%E4%BA%9B%E5%AF%84%E5%AD%98%E5%99%A8%E5%A7%8B%E7%BB%88%E6%98%AF%200x00%EF%BC%9Bs32k344%20%E5%B7%B2%E7%BB%8F%E9%87%8D%E7%BD%AE%E4%BA%86%EF%BC%8C%E6%88%91%E7%9C%8B%E4%B8%8D%E8%A7%81%E8%BF%94%E5%9B%9E%20E_OK%20%E6%88%96%20E_NOT_OK%20%E5%B9%B6%E6%A3%80%E6%9F%A5%E8%BF%99%E4%BA%9B%E5%AF%84%E5%AD%98%E5%99%A8%EF%BC%8C%E4%BD%A0%E9%9C%80%E8%A6%81%E8%AE%A9%E6%88%91%E7%9C%8B%E7%9C%8B%E9%87%8D%E5%90%AF%E5%90%8E%E7%9A%84%E5%80%BC%EF%BC%8C%E5%9C%A8%E8%B0%83%E7%94%A8%20Bist_Run%20(BIST_SAFETYBOOT_CFG)%20%E4%B9%8B%E5%90%8E%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%98%AF%EF%BC%8C%E6%88%91%E5%8F%AF%E4%BB%A5%E9%80%9A%E8%BF%87%E5%BA%8F%E5%88%97%E5%8F%91%E9%80%81%E5%80%BC%E7%84%B6%E5%90%8E%E6%A3%80%E6%9F%A5%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22brunoGT88_0-1764185844161.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brunoGT88_0-1764185844161.png%22%20style%3D%22width%3A%20384px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brunoGT88_0-1764185844161.png%22%20style%3D%22width%3A%20384px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367447iD2D0C763847557D1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22brunoGT88_0-1764185844161.png%22%20alt%3D%22brunoGT88_0-1764185844161.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E5%85%B3%E4%BA%8E%E6%88%91%E6%83%B3%E4%B9%B0%E7%9A%84%20SPD_EVAL%20%E4%BB%A3%E7%A0%81%E5%8C%85%EF%BC%8C%E6%88%91%E4%BB%AC%E8%AF%A5%E6%80%8E%E4%B9%88%E5%81%9A%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2250267%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20with%20Bist_Run(BIST_SAFETYBOOT_CFG).%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250267%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F256974%22%20target%3D%22_blank%22%3E%40brunoGT88%3C%2FA%3E%E3%80%81%3C%2FP%3E%0A%3CP%3EF_POR%20%E7%9A%84%E8%B5%84%E6%96%99%E6%9D%A5%E6%BA%90%E5%A6%82%E4%B8%8B%E3%80%82%3C%2FP%3E%0A%3CP%3E%E5%9B%A0%E6%AD%A4%EF%BC%8C%E6%88%91%E6%80%80%E7%96%91%E6%98%AF%20POR_WDG%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1764233007828.png%22%20style%3D%22width%3A%20673px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1764233007828.png%22%20style%3D%22width%3A%20673px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367577iF23CE1AC3430691C%2Fimage-dimensions%2F673x329%3Fv%3Dv2%22%20width%3D%22673%22%20height%3D%22329%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1764233007828.png%22%20alt%3D%22danielmartynek_0-1764233007828.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E6%97%A0%E8%AE%BA%E5%A6%82%E4%BD%95%EF%BC%8C%E8%AF%B7%E5%88%9B%E5%BB%BA%E6%94%AF%E6%8C%81%E7%A5%A8%3CA%20href%3D%22https%3A%2F%2Fsupport.nxp.com%2Fs%2F%3Flanguage%3Den_US%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.nxp.com%2Fs%2F%3Flanguage%3Den_US%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E5%8F%AF%E4%BB%A5%E7%A7%81%E4%B8%8B%E4%B8%8A%E4%BC%A0%E6%82%A8%E7%9A%84%E9%A1%B9%E7%9B%AE%EF%BC%8C%E4%BB%A5%E4%BE%BF%E6%88%91%E8%BF%9B%E8%A1%8C%E6%B5%8B%E8%AF%95%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%AD%A4%E5%A4%96%EF%BC%8C%E6%88%91%E8%BF%98%E5%8F%AF%E4%BB%A5%E5%9C%A8%E9%82%A3%E9%87%8C%E5%88%86%E4%BA%AB%E6%BC%94%E7%A4%BA%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%AD%A4%E8%87%B4%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%E4%B8%B9%E5%B0%BC%E5%B0%94%3C%2FP%3E%3C%2FLINGO-BODY%3E