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.

[参考译文] TDA4VL-Q1:在 mcu1_0中添加了 mcan、在 RESP 中添加了 mbox 分度

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1200254/tda4vl-q1-add-mcan-in-mcu1_0-mbox-timedout-in-resp

器件型号:TDA4VL-Q1
主题中讨论的其他器件:TDA4VLTDA4VM

您好 TI

   我正在将 mcan 驱动程序从 TDA4VM (J721E 8.02)移植到 TDA4VL(j721e-S2 8.04)、当电路板启动时、IPC 可能无法正常工作、日志显示。 该 mcan 驱动器在 TDA4VM 中运行良好、但在 TDA4-VL 中、它在 mcan 传输函数中运行一次

添加 MCAN_writeMsgRam (mcanModAddr、
MCAN_MEM_TYPE_BUF、
1U、
&txMsg);

系统将启动不正常,将打印以下日志
TI-sci 44083000.system-controller:msp 中的 mbox tidesout (调用方:TI_sci_cmd_put 设备+0x18/0x28)

 这两个平台是否需要不同的 mcan 设置? 此问题的可能原因是什么?

Int32_t App_mcanImplementmentTransfer (Candata_t *光盘)

uint32_t mcanModAddr;
int32_t testStatus = CSL_PASS;
AppMCAN_Instance * inst;
MCAN_ProtocolStatus protStatus;
MCAN_TxBufElement txMsg;

断言(cd);
assert (cd->len<=CANFD_DATA_SIZE);
Assert(CD->inf <ARY_SIZE(appMcanInsts));
Inst=&appMcanInsts[CD->IN];
mcanModAddr = inst->mcanModAddr;

/*初始化要传输的消息*/
txMsg.id =((uint32_t)(cd->id)<< 18U);
txMsg.Rtr = 0U;
txMsg.XTD = 0U;
txMsg.esi = 0U;
if (cd->in =0)

txMsg.FDF = 1;
txMsg.brs = 1;// 1U;

其他

txMsg.FDF = 0;// 1U;
txMsg.brs = 0;// 1U;

txMsg.efc = 1U;
txMsg.mm = 0xAAU;
txMsg.dlc = gMcanAppSizeDlc[CD->len];
memcpy (txMsg.data、cd->d、cd->len);


// appLogPrintf ("MCAN:转移输入=%d,id=%03x,len=%d!\n",CD->IN,CD->ID, cd->len);
MutexP_LOCK (inst->transferex、MutexP_WAIT_FOREVER);
/*将消息写入 Msg RAM */
MCAN_writeMsgRam (mcanModAddr、
MCAN_MEM_TYPE_BUF、
1U、
&txMsg);
/*添加传输请求*/
。。。。。。。。。。μ A
。。。。μ A

e2e.ti.com/.../log_2D00_mcan.txt

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

    您好!

    不建议将 TDA4VM 驱动程序移植到 TDA4VL、两者都是不同的 SOM。我们在 J721S2中有驱动程序、这些驱动程序可用于 SDK 8.4

    此致

    Tarun Mukesh

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

    你(们)好,Tarun

      我将在 mcu1_0中添加 mcan、这些驱动 程序可称为?

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

    您好!

    有关 MCUSW 中的 CAN 驱动程序、请参阅 SDK 中的 mcusw/mcal_drv/mcal/CAN

    您也可以在  pdk/packages/ti/CSL/example/mcan 中引用 mcan

     

    此致

    Tarun Mukesh