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.

[参考译文] AM263P4:AM263Px MCAL 10.0 FLS 驱动程序问题

Guru**** 2468460 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1464912/am263p4-am263px-mcal-10-0-fls-driver-issue

器件型号:AM263P4

工具与软件:

您好!

要使 FLS 能够与 Autosar FEE 模块配合使用、我必须在 FLS 驱动器中进行一些更改。

在功能 Fls_Ospi_ Direct 中:

    pSrc = (uint8 *)(FLS_BASE_ADDRESS + addrOffset);
#if 0
    remainSize = (uint32)trans->count & 3U;
    size = (uint32)trans->count - remainSize;
    /* Transfer the data in 32-bit size */
    for (i = 0U; i < size; i += 4U)
    {
        HW_WR_REG32(pDst + i, HW_RD_REG32(pSrc + i));
    }
    /* Transfer the remaining data in 8-bit size */
    for (i = 0; i < remainSize; i++)
    {
        HW_WR_REG32(pDst + size + i, HW_RD_REG8(pSrc + size + i));
    }
#endif
    /* This code is used to replace the comment out code above
       to avoid data abort exception which cased by alignment issue
       at function HW_WR_REG32(). 12/2024 by Phoenix
    */
    for (i = 0; i < trans->count; i++)
    {
        HW_WR_REG32(pDst + i, HW_RD_REG8(pSrc + i));
    }

另一个问题是、我需要清除由 RBL 设置的寄存器。

HW_WR_FIELD32 (FLS_OSPI_CTRL_BASE_ADDR + OSPI_DEV_INSTR_RD_CONFIG_REG、OSPI_DEV_INSTR_RD_CONFIG_REG_DUM_RD_CLK_CYCLK_CYCLK_FLD、0);
 
否则、我必须将虚拟周期配置为8、这对我们来说可能不是必需的。
请在下一个 mcal 版本中包含这些修复程序。
谢谢
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Pheonix:

    感谢您分享这些更改、我们将在下一个 MCAL 版本中进行分析和修复。

    此致、
    Gunjan