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.

[参考译文] MSPM0G3519:CAN 驱动程序中的编译问题–CAN If_Trigger 传输 API 缺少防护

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1632293/mspm0g3519-compilation-issue-in-can-driver-missing-guard-for-canif_triggertransmit-api

器件型号: MSPM0G3519

CAN 驱动程序中遇到编译问题。 经过分析、该问题与 CanIf_TriggerTransmit API 相关。

该 API 不是必需的;但是、在当前实现CanIf_TriggerTransmit中、以下文件中没有防护检查:
\mcal\Can\V0\Can_Mcan.c

请求:

我们要求您CanIf_TriggerTransmit在 CAN 驱动程序实现中为 API 添加适当的保护检查、以确保在 API 未启用时成功编译。

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

    您好、您是否在 EB 中参考了此设置?

    和此处的源代码:

    can_mcan.c

    status = CanIf_TriggerTransmit(pduInfo->id, PduInfoPtr);

    CanApp.c

    Std_ReturnType CanIf_TriggerTransmit(PduIdType TxPduId, PduInfoType* PduInfoPtr)
    {
    	PduInfoPtr->SduDataPtr = &data[0U];
    	PduInfoPtr->SduLength = 46U;
    	return E_OK;
    }

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

    你好、 齐赫里克 、

    我正在内部审核此问题、并将很快向您提供最新信息。 感谢您的答复。