How to enable "Redirect printf/scanf to ITM" in an existing MCUXpresso project?

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

How to enable "Redirect printf/scanf to ITM" in an existing MCUXpresso project?

ソリューションへジャンプ
2,337件の閲覧回数
haizhouli
Contributor III

We did not check the feature of "Redirect printf/scanf to ITM" when we created this MCUXpresso project.  Is there a way to enable this feature by modifying the IDE or some project setting file?

Thanks!

0 件の賞賛
返信
1 解決策
1,756件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello HAIZHOU LI ,

Your project is based on SDK ? If yes, you can try to add the file of "retarget_itm.c" .

it under MCUXpresso IDE install path: MCUXpressoIDE_10.1.0_589\ide\Examples\Misc

About the How to use ITM Printf, please have a look at "MCUXpresso_IDE_User_Guide.pdf"-> 13.5.7 How to use ITM Printf

Hope it helps

Alice

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,756件の閲覧回数
haizhouli
Contributor III

It works! Thanks!

0 件の賞賛
返信
1,757件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello HAIZHOU LI ,

Your project is based on SDK ? If yes, you can try to add the file of "retarget_itm.c" .

it under MCUXpresso IDE install path: MCUXpressoIDE_10.1.0_589\ide\Examples\Misc

About the How to use ITM Printf, please have a look at "MCUXpresso_IDE_User_Guide.pdf"-> 13.5.7 How to use ITM Printf

Hope it helps

Alice

0 件の賞賛
返信