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.

[参考译文] LAUNCHXL2-570LC43:LAUNCHXL2-570LC43上的 FlexRay 示例

Guru**** 2466550 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/668798/launchxl2-570lc43-flexray-example-on-launchxl2-570lc43

器件型号:LAUNCHXL2-570LC43

你好

我尝试在 Launchxl2-50lc43上运行 FlexRay 示例。 我下载 tms570ls31的 FlexRay 示例-> FlexRay_Communication _CCSv5。 我读出 TMS570LS31与 TMS570LC43具有相同的 FlexRay 寄存器。 我在 FR_ControllerInit 函数中写入寄存器 SUCC1时遇到问题。 我想在 SUCC1寄存器中写入一些配置、但每次 PBSY 标志设置为 BUSY、程序在红色标记的行上停止。 我不知道问题在哪里。  

int FR_ControllerInit (fray_ST * Fray_PST)

unsigned int error=0;
//写入 SUCC1配置
fray_pst->SUCC1_UN.SUCC1_UL = 0x0F1FFB00 | CMD_CONFIG;
//检查 POC 是否已接受最后一个命令
if (((Fray_PST->SUCC1_UN.SUCC1_UL 和0xF)== 0x0)返回1;
//等待 PBSY 位清零- POC 不忙
while (((Fray_PST->SUCC1_UN.SUCC1_UL & 0x00000080)!= 0x0);

//解锁配置并进入就绪状态
fray_pst->lCK_UN.lCK_ST.clk_B8=0xCE;
fray_pst->lCK_UN.lCK_ST.clk_B8=0x31;
//写入 SUCC1配置
fray_pst->SUCC1_UN.SUCC1_ST.cmd_B4=(0xFB00 | CMD_READY);
//检查 POC 是否已接受最后一个命令
if (((Fray_PST->SUCC1_UN.SUCC1_UL 和0xF)== 0x0) ERROR = 1;
//等待 PBSY 位清零- POC 不忙
while (((Fray_PST->SUCC1_UN.SUCC1_UL & 0x00000080)!= 0x0);
返回错误;

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

    Flexray 采样时钟(SCLK)为80MHz。 80MHz 由 AVCLK2提供。 第二个 PLL 通常用作 AVCLK2的源。 请确保启用了 AVCLK2、AVCLK2的源极为第二个 PLL、第二个 PLL 输出为80MHz。