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.

TDA4VM: DM timer 周期及其配置不准

Part Number: TDA4VM

TI 专家你好:

开发板:自己开发板

sdk:  ti-processor-sdk-rtos-j721e-evm-08_01_00_13

我想在mcu1_0上去使用了 DM timer.

其中,周期配置为5000, 周期类型为 微秒(period_type= 0)。

但是在调试过程中,发现周期远远超过了5毫秒,然后我输出日志,

打印了定时器的配置:

发现周期参数不对。请问一下TI专家,怎么解决这个问题。

谢谢。

  • 你好,该帖子有什么进展吗?目前没有任何更新。

  • 抱歉,已经去催了。

  • 请看下面e2e工程师的回复。
    Are they referring to any existing example. If yes, can you please share the changes that they have made so I can reproduce this error on my end?

  • main_rtos.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /*
    * \brief Main file for TI-RTOS build
    */
    /* ========================================================================== */
    /* Include Files */
    /* ========================================================================== */
    #include <ti/csl/arch/csl_arch.h>
    #include <ti/csl/soc.h>
    #include <ti/csl/cslr.h>
    #include <ti/osal/osal.h>
    #include <ti/osal/TaskP.h>
    #if (defined (BUILD_MCU1_0) && (defined (SOC_J721E) || defined (SOC_J7200)))
    #include <ti/drv/sciclient/sciserver_tirtos.h>
    #endif
    #include <ti/drv/ipc/include/ipc_rsctypes.h>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    1,将上述源文件编译。启动核为mcu1_0.

    2,将编译出来的固件,将其make u-boot-a72的 DM,编译tispl.bin

    (注意:我在tick_fxn中,没有加入我们的代码,TI的专家可以将tda4vm板中的某一个IO作为测试点,将其5ms一次 循环拉高、拉低。通过示波器观察)

  • 上述就是我用示波器测量的结果。时钟会在上电之后不久,会出现一次或多次挂死现象,待linux kernel启动完成后,就不会出现上述现象,且时钟稳定。麻烦TI专家帮忙分析一下。谢谢。

  • 已跟进,请关注帖子的回复。

  • 你好,那个英文贴貌似没有更新了。

  • 我去催一下

  • 你好,那个英文帖子没有更新了,这个问题挺重要的,帮忙和专家沟通一下,谢谢

  • 抱歉,我再去催一下。

  • 你好,这个问题已经将近半个月了,这个还有什么进展吗?TI工程师帮忙验证了嘛?

  • 抱歉回复晚了,请看下面工程师的回复。

    The timer configuration looks fine.

    Do you see the same issue when just running the RTOS alone, without running the Linux on A72?

    Also, can you try using any other timer instance and see if the results are same?

  • 1,CCS debug的时候,是正常的(我想ccs去debug的时候是没有运行linux的)

    2,我尝试过其他的DM timer ,但是毫无意外,均在linux kernel启动过程中,出现了这个问题。

    同时,mcu 能使用的DM timer 不多, 即使TRM上有众多DM timer可以使用(大约20个),但是mcu能使用的也才几个,如下:

    后来我尝试去修改这个mask,将其扩展为(0xFF),但是也有几个DM timer会创建不成功。

    请问TI专家,您在开发板上,通过编译修改tispl.bin测试了这个DM timer了嘛?
    结果是正常的嘛?

  • 已把您的回复更新到e2e帖子。

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