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.

TDA4VM: How to set firewall on MCU1-0

Part Number: TDA4VM


hello!

We need to set up firewall protection for the slave with firewall id 1050. I did, but something went wrong,Please help to investigate.

-----------------------------------------------------------------------------------------------------------------------

struct tisci_msg_fwl_set_firewall_region_req req_fw_ctrl[1] =
{
{
.fwl_id = (uint16_t) MCU_MSRAM_1MB0,
.region = (uint16_t) 0,
.n_permission_regs = (uint32_t) 3,
/* Set .control to zero to disable the firewall region */
.control = (uint32_t) 0,
.permissions[0] = (uint32_t) 0,
.permissions[1] = (uint32_t) 0,
.permissions[2] = (uint32_t) 0,
.start_address = (unsigned long long) resp_get_fw_ctrl[0].start_address,
.end_address = (unsigned long long) resp_get_fw_ctrl[0].end_address
}
};

req_fw_ctrl[0].fwl_id = (uint16_t) 1050;
req_fw_ctrl[0].region = (uint16_t) 0;
req_fw_ctrl[0].n_permission_regs = (uint32_t) 3;
req_fw_ctrl[0].control = (uint32_t) 0x10a; // Background Rgion = 1, default config
req_fw_ctrl[0].permissions[0] = (uint32_t) 0xc3ffff; //c3(195) means everyone, ffff means all permissions
req_fw_ctrl[0].permissions[1] = (uint32_t) 0xc3ffff;
req_fw_ctrl[0].permissions[2] = (uint32_t) 0xc3ffff;
req_fw_ctrl[0].start_address = (uint64_t) 0x41c00000;
req_fw_ctrl[0].end_address = (uint64_t) 0x41cfffff;

status = Sciclient_firewallSetRegion(&req_fw_ctrl[0], &resp_fw_ctrl[0], 1000);
if (status != CSL_PASS)
{
AppUtils_Printf(2, ":FAILED to Sciclient_firewallSetRegion MCU1-0 MSRAM region0\r\n");
}

------------------------------------------------------------------------------------------------------------------------------------------------

log output: "FAILED to Sciclient_firewallSetRegion MCU1-0 MSRAM region0"

How should we set up the firewall correctly