Thread 中讨论的其他器件:TDA4VH
工具/软件:
如何在 MCU2_0或 MCU2_1等主域 R5F 内核上运行 MCU CPSW2G ENET 示例?
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.
默认情况下、TI SDK 在 MCU R5F 内核(例如 MCU1_0)上启用 MCU CPSW2G ENET 示例。
要在主域 R5F 内核(MCU2_0、MCU2_1或其他)上运行 MCU CPSW2G ENET 示例、请 按照以下步骤修改示例应用。
1)在 EnetType 配置中启用 MCU CPSW2G 实例。
修改配置、为所需内核启用 MCU CPSW2G。
文件路径:
pdk/packages/ti/drv/enet/examples/enet_xxx_example/test_config_j7x.c
注意:
如果使用 TDA4VH、 平台有两个 CPSW2G 实例。
实例 ID: 0 指 MCU CPSW2G
实例 ID: 1 指 主 CPSW2G。
确保使用 CPSW2G 实例类型将 InstID 设置为0到目标核心。
2)为目标核心启用默认资源。
调整要在其中运行示例的内核的资源配置。
文件路径:
pdk/packages/ti/drv/enet/examples/utils/enet_apprmcfg.c Vx
示例:
要为 MCU2_CPSW2G 示例启用 MCU2_1内核、请按如下所示进行配置:
static EnetRm_ResPrms gEnetAppRmDefCfg_2G = { .coreDmaResInfo = { [0] = { .coreId = IPC_MPU1_0, .numTxCh = 2U, .numRxFlows = 2U, .numMacAddress = 1U, }, [1] = { .coreId = IPC_MCU1_0, .numTxCh = 4U, .numRxFlows = 4U, .numMacAddress = 1U, }, [2] = { .coreId = IPC_MCU2_1, .numTxCh = 2U, .numRxFlows = 2U, .numMacAddress = 1U, }, }, .numCores = 3, };