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.

RM46L430: Executing PSCON_PMA_TEST via SL_SelfTest_PSCON fails

Part Number: RM46L430

A call to:

retVal = SL_SelfTest_PSCON(PSCON_PMA_TEST, TRUE, &failInfoPSCON);

fails, 'retVal' returns '0'.

The 'PSCON_SELF_TEST', 'PSCON_ERROR_FORCING', 'PSCON_ERROR_FORCING' & 'PSCON_SELF_TEST_ERROR_FORCING' calls all pass.

I found this is the SafeTI Library demo application that says:

    retVal = SL_SelfTest_PSCON(PSCON_PMA_TEST, TRUE, &failInfoPSCON);
    if (FALSE == retVal) { /* Must fail, since PMA tests cannot be run in privilege modes */
    		initSTPassCount++;
    } else {
    		initSTFailCount++;
    }

But, the SafeTI Library (v2.3.1) help says:

Entry Mode:
Any privilege mode

Which is correct?

  • Hello Mark,

    Several PMM registers have write protection. Those registers can be read in user mode and privilege mode, but can be written in privilege mode only.
    PMA test is to test this protection feature, and it has to be run in user mode to generate a access error.

    Regards,
    QJ
  • Hello QJ,

    Thanks for your response.

    Am I missing an errata for the SafeTI Library documentation?

    'SafeTIDiagnosticLibrary-User'sGuide-v2.3.1.chm' does not mention anything about this restriction.

    'Software_Safety_Manual.pdf' (SPNU592A–April 2015–Revised October 2016) only mentions 'SL_SelfTest_PSCON'.

    Regards,

    Mark.