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.

AWR1843: bios_6_73_01_01该如何怎么配置Timer的使用

Part Number: AWR1843


各位好!

       我这边使用动态测试创建的TIMER,在仿真的时候总是会abort,不仿真的时候是没问题的。另外,使用静态创建TIMER,在仿真的时候是没有问题的。请问是否有什么办法使用动态创建的timer,仿真时不会abort?

另外,由于我是在bootloader创建的timer,是否需要在跳转APP前使用Timer_delete先删除timer后再跳转?如果是,静态创建的timer,如何在跳转前删除或者停止呢?

  • 在仿真的时候总是会abort

    能否发一下timer的动态创建代码?在仿真是设置断点的时候会abort吗?全速运行会abort吗?


    由于我是在bootloader创建的timer,是否需要在跳转APP前使用Timer_delete先删除timer后再跳转?如果是,静态创建的timer,如何在跳转前删除或者停止呢?

    创建了timer会影响跳转到APP吗?

  • Timer_Params timerParams;
    Error_Block eb;

    /* Create a timer for warning info send */
    Error_init(&eb);
    Timer_Params_init(&timerParams);
    timerParams.period = 1000; /* 1 ms */
    timerParams.periodType = Timer_PeriodType_MICROSECS;
    timerParams.arg = 1;
    gSblMCB.timeHandle = Timer_create(1, SBL_TimerFxn, &timerParams, &eb);
    if (gSblMCB.timeHandle == NULL)
    {
    SBL_printf("EscTimerHandle create failed");
    }

    这是动态创建的代码

  • 这个测试感觉没影响,但使用动态创建timer时,在跳转APP前,会先执行一下Timer_delete,但是动态创建的TIMER会在仿真时abort,导致无法仿真,这很影响定位代码的问题,想找个办法解决一下

  • 你好,

    可以尝试clock么?