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.

AWR2944: How to perform fault injection of MPU at AWR 2944

Part Number: AWR2944

Tool/software:

Hello There,

For the test of safety features at AWR2944, I'm following the "Safety Software Sequences" V0.8.0 to perform fault injection. In the chapter "2.2 MPU Errors" of AWR2944 MSS, following questions need to be answered.

1. How the start_addressX and end_addressX be selected?

Original text:

2.2.3 Programming sequence

2) Configure the start and end address for each programmable region.
MPU_MSS_L2_BANKA.PROGRAMMABLE_1_START_ADDRESS.START_ADDR = start_address1;
MPU_MSS_L2_BANKA.PROGRAMMABLE_1_END_ADDRESS.END_ADDR = end_address1;
MPU_MSS_L2_BANKA.PROGRAMMABLE_2_START_ADDRESS.START_ADDR = start_address2;
MPU_MSS_L2_BANKA.PROGRAMMABLE_2_END_ADDRESS.END_ADDR = end_address2;
…and so on.

2.How the "masters_allowed_for_region1" be defined?

Original text:

3)Configure the MPPA register for each programmable region to grant access to corresponding masters.
The AID field in MPPA register has one hot encoding for each master. If the corresponding bit is set to 1, the MPU grants access to the master, otherwise it blocks access.
MPU_MSS_L2_BANKA.PROGRAMMABLE_1_MPPA.AID15_0 = masters_allowed_for_region1;
MPU_MSS_L2_BANKA.PROGRAMMABLE_2_MPPA.AID15_0 = masters_allowed_for_region2;

It's kindly to provide one example for the test of MPU errors because no example of MPU is found in the "mcu_plus_sdk_awr294x_08_04_00_01".

Thanks.

Wang Kaiyu

  • Hi Wang, 

    Let me check internally for a reference code that can be shared for the MPU sequencing. 

    To answer the queries

    1. How the start_addressX and end_addressX be selected?

    This is the address range which you would like to be protected by the MPU.

    2.How the "masters_allowed_for_region1" be defined?

    Please refer to the MPPA register description. Each Master core like MSS (R5F) or DSS (c66x) have an assigned master ID. The ID are also mentioned in the TRM. 

    Each bit in the MPPA register will represent a master ID. If you want the protection to be enabled for a master, you will write a 1 to that bit. 

    Thanks,

    Pradipta.