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.

[FAQ] [参考译文] [FAQ] PROCESSOR-SDK-AM64X:Enet Layer 2 CPSW 示例在 AM64x MCU+ SDK 08.05.00.24上不起作用

Guru**** 1955920 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1216936/faq-processor-sdk-am64x-enet-layer-2-cpsw-example-not-working-on-am64x-mcu-sdk-08-05-00-24

器件型号:PROCESSOR-SDK-AM64X

您好!

这是 MCUSDK 8.5的已知问题。 计划在即将发布的版本中修复。

注意 :我在这里讨论的只是一个变通办法,而不是一个干净的修复。

要检查的步骤

如果您有本地编译设置、请执行以下步骤。

  1. 打开文件:mcu_plus_sdk_am64x_08_05_00_24\source\networking\.meta\enet_cpsw\templates\am64x_am243x\enet_soc_cfg.c.xdt

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*!
* \brief CPSW3G default configuration
*
* Note: If user wishes to change the Resource Partition the following
* things must be considered:
* 1. Sum of numTxCh allocated to each core should not exceed 8.
* 2. Sum of numRxFlows allocated to each core should not exceed 7 (not 8),
* as one Rx flow is reserved to the master core.
*
*/
static EnetRm_ResPrms gEnetAppRmDefCfg_3G =
{
.coreDmaResInfo =
{
[0] =
{
.coreId = `module.getCpuID()`,
.numTxCh = ENET_SYSCFG_TX_CHANNELS_NUM, /* numTxCh */
.numRxFlows = (ENET_SYSCFG_RX_FLOWS_NUM + 1), /* numRxFlows. Need one additional flow for reserved flow */
.numMacAddress = 3U, /* numMacAddress */
},
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  1. 更改 .numMacAddress = 3u、  /* numMacAddress */
    1. 默认情况下、该值应为4
  2. 打开命令提示符  
  3. CD C:\ti\mcu_plus_sdk_am64x_08_05_00_24
  4. gmake -s -C examples/networking/enet_layer2_cpsw/am64x-sk/r5fss0-0_freertos/ti-arm-clang clean
  5. gmake -s -C examples/networking/enet_layer2_cpsw/am64x-sk/r5fss0-0_freertos/ti-arm-clang all
  6. 生成的.out 可在中找到
    1. C:\ti\mcu_plus_sdk_am64x_08_05_00_24\examples\networking\enet_layer2_cpsw\am64x-sk\r5fss0-0_freertos\ti-arm-clang
    2. 文件名将为 enet_l2_cpsw.release.out
  7. 尝试使用 CCS 加载该文件

此致

Ashwani

x 出现错误。请重试或与管理员联系。