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,139 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

1,054 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

1,045 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

1,005 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

1,057 Views
brunoGT88
Contributor III

Can anyone help me?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2248320%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EProblems%20with%20Bist_Run(BIST_SAFETYBOOT_CFG).%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248320%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20everyone%20!%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%E2%80%99m%20using%20the%20MR-CANHUBK344%20board%20to%20develop%20a%20VCU%20solution%20and%20I%E2%80%99m%20finding%20problems%20with%20the%20BIST%20self-test%2C%20I%E2%80%99m%20using%20RTD%204.0.0%20and%20SPD%201.0.5%20as%20recommended%20%2C%20and%20I%E2%80%99m%20using%20the%20NXP%20SPD_Demo%20example%20as%20support.%3CBR%20%2F%3EWhen%20I%20initialize%20the%20board%20and%20read%20the%20reset%20reason%2C%20I%20can%20read%20the%20flag%20value%20in%20Mcu_GetResetReason()%20%3D%3D%20MCU_POWER_ON_RESET%2C%20then%20I%20call%20Bist_Run(BIST_SAFETYBOOT_CFG)%3B%20and%20the%20micro%20reset%20again%2C%20and%20the%20expected%20behavior%20is%20the%20flag%20now%20marking%20Mcu_GetResetReason()%20%3D%3D%20MCU_ST_DONE_RESET%2C%20but%20returns%20as%20MCU_POWER_ON_RESET%2C%20then%20calls%20the%20Bist_Run%20again%20%2C%20according%20to%20the%20example%20of%20nxp%20the%20flow%20is%20this%3A%3CBR%20%2F%3Eif%20(MCU_POWER_ON_RESET%20%3D%3D%20resetReason)%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%23if%20(BIST_MODULE_ENABLED%20%3D%3D%201U)%3CBR%20%2F%3EBist_Run(BIST_SAFETYBOOT_CFG)%3B%3CBR%20%2F%3E%7D%3CBR%20%2F%3Eelse%20if(MCU_ST_DONE_RESET%20%3D%3D%20resetReason)%3CBR%20%2F%3E%7B%3CBR%20%2F%3EbistStatus%20%3D%20Bist_GetExecStatus(BIST_SAFETYBOOT_CFG)%3B%3CBR%20%2F%3E.......%20etc%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3EI%20don%E2%80%99t%20know%20if%20I%20need%20to%20set%20up%20something%20else%20in%20the%20RTD%2C%20SPD%20or%20MCAL%2C%20or%20do%20something%20on%20some%20interruption%20that%20I%E2%80%99m%20not%20looking%20at.%3CBR%20%2F%3EFollowing%20print%20of%20what%20I%20enabled%20in%20the%20RTD%20and%20the%20SPD%3A%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%3EThank%20you!%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%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F160001%22%20target%3D%22_blank%22%3E%40danielmartynek%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EBefore%20and%20after%20initializing%20the%20MCU%20with%20the%20sequence%3A%3CBR%20%2F%3E%3CBR%20%2F%3EMcu_Init(%26amp%3BMcu_Config)%3B%3CBR%20%2F%3EMcu_InitClock(McuClockSettingConfig_0)%3B%3CBR%20%2F%3Ewhile%20(MCU_PLL_LOCKED%20!%3D%20Mcu_GetPllStatus())%3B%3CBR%20%2F%3EMcu_DistributePllClock()%3B%3CBR%20%2F%3EMcu_SetMode(McudeSettingConf_0)%3B%3CBR%20%2F%3E%3CBR%20%2F%3Ethese%20registers%20are%20always%200x00%2C%20after%20I%20call%20Bist_Run(BIST_SAFETYBOOT_CFG)%3B%20the%20s32k344%20alredy%20resets%2C%20I%20can%20not%20see%20return%20E_OK%20or%20E_NOT_OK%20and%20check%20these%20registers%2C%20you%20need%20that%20me%20to%20see%20the%20values%20after%20it%20restart%2C%20after%20the%20call%20Bist_Run(BIST_SAFETYBOOT_CFG)%2C%20if%20yes%2C%20I%20can%20send%20by%20a%20serial%20the%20values%20and%20check.%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%3EAbout%20the%20SPD_EVAL%20package%20I%20would%20like%20to%20get%2C%20how%20can%20we%20proceed%3F%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%3EHi%26nbsp%3B%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%2C%3C%2FP%3E%0A%3CP%3EF_POR%20has%20the%20sources%20below.%3C%2FP%3E%0A%3CP%3ESo%2C%20I%20suspected%20POR_WDG.%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%3EAnyway%2C%20please%20create%20a%20support%20ticket%26nbsp%3B%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%3EYou%20can%20upload%20your%20project%20there%20privately%2C%20so%20that%20I%20can%20test%20it.%3C%2FP%3E%0A%3CP%3EAlso%2C%20I%20can%20share%20the%20demo%20there.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E