This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS3137: Regarding SDL API.

Part Number: TMS570LS3137


Tool/software:

Dear All,

I'm going to test SDL API.
The three APIs I'm going to test are as follows.
SL_SelfTest_CCMR4F()
SL_SelfTest_Flash()
SL_SelfTest_SRAM()

The actual tested code is as follows.
SL_SelfTest_Result flash_stResult = ST_PASS;
SL_SelfTest_Result sram_stResult = ST_PASS;
SL_CCMR4F_FailInfo failInfoCCMR4F;

boolean ccmr4fResult = SL_SelfTest_CCMR4F(CCMR4F_SELF_TEST, FALSE, &failInfoCCMR4F);
boolean flashResult = SL_SelfTest_Flash(FLASH_ECC_TEST_MODE_1BIT, TRUE, &flash_stResult); boolean sramResult = SL_SelfTest_SRAM(SRAM_ECC_ERROR_FORCING_1BIT, TRUE, &sram_stResult);

What I'm wondering here is,
When I run the above example code, all three return TRUE,
but what should I do if I need to return FALSE?

What value should I put in the API argument?

Best Regards,

IBLEE

  • Hi IBLEE,

    There are many ways to get false value from the test functions, you need to verify their definitions to understand it.

    One of the ways is that for every test function there is a Min and Max verifications for test type like below:

    If the test type is not in between Min and Max limits then it will return FALSE, you can verify these limits for each test and can give the out of boundary values to return FALSE from the function.

    --
    Thanks & regards,
    Jagadish.