MBOX module consists ECC Bus Safety Diagnostics.
Features Supported
MBOX supports Diagnostic check for ECC BUS Safety Errors
ECC BUS Safety Errors : This includes SEC , DED and RED error injection on MSS MBOX , DSS MBOX and RSS MBOX
Note : SEC - Single Error Correction, DED - Double Error Correction, RED - Redundancy Error Correction
The module supports below API's for the application
- API to support and induce error on MBOX BUS.
- API to support interrupt configuration
SysConfig Features
Features NOT Supported
Important Usage Guidelines
Example Usage
The following shows an example of SDL MBOX API usage by the application for Error Injection Tests.
Include the below file to access the APIs
Induce the error SEC in MSS MBOX
while((mboxSecFlag!=TRUE) && (timeout!=0U))
{
timeout--;
}
if(mboxSecFlag==TRUE)
{
mboxSecFlag=FALSE;
ret_val = SDL_PASS;
}
else
{
ret_val = SDL_EFAIL;
}
Induce the error SEC in DSS MBOX
{
timeout--;
}
{
ret_val = SDL_PASS;
}
else
{
ret_val = SDL_EFAIL;
}
Induce the error SEC in RSS MBOX
{
timeout--;
}
{
ret_val = SDL_PASS;
}
else
{
ret_val = SDL_EFAIL;
}
Induce the error DED in MSS MBOX
while((mssMboxDedRedFlag!=TRUE) && (timeout!=0U))
{
timeout--;
}
if(mssMboxDedRedFlag==TRUE)
{
mssMboxDedRedFlag=FALSE;
ret_val = SDL_PASS;
}
else
{
ret_val = SDL_EFAIL;
}
Induce the error DED in DSS MBOX
{
timeout--;
}
{
ret_val = SDL_PASS;
}
else
{
ret_val = SDL_EFAIL;
}
Induce the error DED in RSS MBOX
{
timeout--;
}
{
ret_val = SDL_PASS;
}
else
{
ret_val = SDL_EFAIL;
}
Induce the error RED in MSS MBOX
if(ret_val == SDL_PASS )
{
while((mssMboxDedRedFlag!=TRUE) && (timeout!=0U))
{
timeout--;
}
if(mssMboxDedRedFlag==TRUE)
{
ret_val = SDL_PASS;
mssMboxDedRedFlag =FALSE;
}
else
{
ret_val = SDL_EFAIL;
}
}
else
{
ret_val = SDL_EFAIL;
}
Induce the error RED in DSS MBOX
if(ret_val == SDL_PASS )
{
{
timeout--;
}
{
ret_val = SDL_PASS;
}
else
{
ret_val = SDL_EFAIL;
}
}
else
{
ret_val = SDL_EFAIL;
}
Induce the error RED in RSS MBOX
if(ret_val == SDL_PASS )
{
{
timeout--;
}
{
ret_val = SDL_PASS;
}
else
{
ret_val = SDL_EFAIL;
}
}
else
{
ret_val = SDL_EFAIL;
}
API
APIs for SDL MBOX