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.

MCU-PLUS-SDK-AM243X: Software readback of written configuration

Part Number: MCU-PLUS-SDK-AM243X

Tool/software:

Hi

In executing the two diagnostic procedures specified in the security manual, I encountered issues.

1. R5F.CPU7 - Software readback of written configuration
2. CBA7 - Software readback of written configuration

We did not reconfigure R5F and CBASS in actual use. Where should I read back which registers? Is there a list of registers?

Please specify the context or documentation for better assistance.

thanks

Jimmy

  • Jimmy, 

    Registers for CBASS are documented in the TRM  https://www.ti.com/lit/ug/spruim2h/spruim2h.pdf

    3.10 System Interconnect Registers

    Registers for the R5F are documented in the same document -  6.2.4 R5FSS Registers

    But there are also coprocessor registers (not memory mapped) to consider inside the R5F itself. 

    For these please refer to the R5F TRM for example  https://developer.arm.com/documentation/ddi0460/d/System-Control/Register-summary

    -Anthony

  • Anthony

    I am aware that the TRM contains a list of all registers, and my question is: Since I haven't reconfigured CBASS and R5F, how should I proceed with the Software Readback of Written Configuration diagnostic measure?

    Jimmy

  • Jimmy, 

    Configuration registers that are in the default state (even if they are not reconfigured) should be checked unless it can be rationalized that they are not safety related.  Otherwise they could be corrupted as a result of some other fault.   For the CBASS and R5F (ex. MPU) there are safety mechanisms of firewall and memory protection which if corrupted and not checked & corrected periodically will cause the latent fault metric to drop.

    -Anthony

  • Anthony

    Yes, we should implement the diagnostic measure "Periodic software readback of static configuration registers" for CBASS and R5F, but my question is: how do I carry out the diagnostic procedure required by the safety manual for "Software readback of written configuration"? Here are two diagnostic measures.

    Jimmy

  • Jimmy, 

    You need to write a test that reads back the MMRs, masks off irrelevant bits, and checks the relevant bits against golden values.

  • Anthony

    Thank you for your reply.

    We have already been able to cyclically read back the registers in the MMR.
    The current issue is, where should CBASS and R5F execute "Software readback of written configuration" in terms of setup or configuration? I am unable to locate the relevant settings.

    Jimmy

  • Hi Jimmy,

      The CBASS register include such as Qos registers. Please refer the table Table 3-14 of TRM.  To R5FSS_0, The register list as below,

       QOS_IPULSAR_LITE_MAIN_0_CPU0_RMST_MAP0  baseaddr 0X45d82800  offset 0x100

       QOS_IPULSAR_LITE_MAIN_0_CPU0_WMST_MAP0 baseaddr 0X45d82c00 offset 0x100

       To monitor the status of CBASS Error,  the CBASS error registers need to check.

        CBASS_INFRA1_ERR  baseaddr x210000, and the ERR_REGS_err_intr_raw_stat is offset 0x50, need to check .

    Linjun