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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,946 Views
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 Kudos
1 Solution
1,365 Views
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

View solution in original post

0 Kudos
2 Replies
1,365 Views
haizhouli
Contributor III

It works! Thanks!

0 Kudos
1,366 Views
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 Kudos