I'm in the process of implementing S32k344 BISTs in a green hills project. I'm using SW32K3_SPD_1.0.6_D2512 in the source code form since I don't use Tresos or NXP DS. I was able to import most of the bist functions, except few defines that I'm not sure about (can't find them anywhere). Can anybody answer below questions.
1. Can I run LBIST MBIST while S32k344 is in lock step mode?
2. Is the following defines correct, I guessed by examining the code?
#define BIST_MBIST_0 1U
#define BIST_MBIST_1 2U
#define BIST_MBIST_2 3U
#define BIST_MBIST_3 4U
#define BIST_MBIST_4 5U
#define BIST_MBIST_5 6U
#define BIST_MBIST_6 7U
#define BIST_MBIST_7 8U
#define BIST_MBIST_8 9U
#define BIST_MBIST_9 10U
#define BIST_MBIST_10 11U
#define BIST_LBIST_0 0U
the config data I used are as follows:
static const BIST_CHANNEL_CONFIG_TYPE BistConfig[BIST_SAFETYBOOTCFG_NB] =
{
{
(BIST_CHANNEL_TYPE)BIST_MBIST_0,
(BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_1))
},
{
(BIST_CHANNEL_TYPE)BIST_MBIST_1,
(BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_2))
},
{
(BIST_CHANNEL_TYPE)BIST_MBIST_2,
(BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_3))
},
{
(BIST_CHANNEL_TYPE)BIST_MBIST_3,
(BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_4))
},
{
(BIST_CHANNEL_TYPE)BIST_MBIST_4,
(BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_5))
},
{
(BIST_CHANNEL_TYPE)BIST_MBIST_5,
(BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_6))
},
{
(BIST_CHANNEL_TYPE)BIST_MBIST_6,
(BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_7))
},
{
(BIST_CHANNEL_TYPE)BIST_MBIST_7,
(BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_8))
},
{
(BIST_CHANNEL_TYPE)BIST_MBIST_8,
(BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_9))
},
//#endif
{
(BIST_CHANNEL_TYPE)BIST_MBIST_9,
(BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_10))
},
{
(BIST_CHANNEL_TYPE)BIST_MBIST_10,
(BIST_CONTROL_TYPE)(0x00100000U)
},
{
(BIST_CHANNEL_TYPE)BIST_LBIST_0,
(BIST_CONTROL_TYPE)((0x00001108U) | BIST_LBIST_PTR_VAL(BIST_NIL))
}
};