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?

跳至解决方案
5,150 次查看
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 解答
4,569 次查看
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 回复数
4,569 次查看
haizhouli
Contributor III

It works! Thanks!

0 项奖励
回复
4,570 次查看
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 项奖励
回复