How to work with DWT in MCUXpresso?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to work with DWT in MCUXpresso?

1,345件の閲覧回数
john71
Senior Contributor I

I want to use DWT

    void DWT_Init(void)
    {
       CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
        DWT->CYCCNT = 0;
        DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk;
    }

I get errors in the file. So I include #include "core_cm7.h" and I have no errors in the file but I have multiple errors in core_cm7.h when I try to compile. What header file should I include to work with DWT?

0 件の賞賛
返信
1 返信

1,263件の閲覧回数
john71
Senior Contributor I

one should include "fsl_common.h"

0 件の賞賛
返信