Other Parts Discussed in Thread: DRA821
Hi, Ti,
We now need to configure firewall 4760/4761 to protect certain range of SRAM memory from being accessed.
Therefore, we need to know the valid regions for these 2 firewalls.
From the SDK (ti-processor-sdk-rtos-j7200-evm-09_00_00_07/pdk_j7200_09_00_00_45/packages/ti/csl/soc/j7200/src/csl_soc_firewalls.h) ,
we could find that the valid regions for 4760 and 4761 are both 0x60000000 ~ 0x7fffffff, as shown in the code snippet below,
/* Properties of firewall at slave: NAVSS0_VIRTSS_NB_SLV0_MEM0 */ #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV0_MEM0_ID (4760U) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV0_MEM0_TYPE (CSL_FW_SECURITY) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV0_MEM0_MMR_BASE (0x000000454a6000U) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV0_MEM0_NUM_REGIONS (24U) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV0_MEM0_NUM_PRIV_IDS_PER_REGION (3U) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV0_MEM0_NB_SLV0_MEM0_START (0x00000060000000U) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV0_MEM0_NB_SLV0_MEM0_END (0x0000007fffffffU) /* Properties of firewall at slave: NAVSS0_VIRTSS_NB_SLV1_MEM0 */ #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV1_MEM0_ID (4761U) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV1_MEM0_TYPE (CSL_FW_SECURITY) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV1_MEM0_MMR_BASE (0x000000454a6400U) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV1_MEM0_NUM_REGIONS (24U) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV1_MEM0_NUM_PRIV_IDS_PER_REGION (3U) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV1_MEM0_NB_SLV1_MEM0_START (0x00000060000000U) #define CSL_STD_FW_NAVSS0_VIRTSS_NB_SLV1_MEM0_NB_SLV1_MEM0_END (0x0000007fffffffU)
But, when we try configuring firewall with those regions, we got error "ERROR: Failed to get response (-19)".
And if we change the region to other values, i.e, 0x70000000 ~ 0x7001ffff or 0x70000000 ~ 0x700effff, the configuration succeeds.
So could you kindly please answer about the valid regions for these two firewalls?
Regards,
Liang Liang