Correct disable Debug Printf in Release

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

Correct disable Debug Printf in Release

1,695 Views
LArmstrong1985
Contributor III

Hi,

I look several example DbgConsole_Printf or printf for debug information.

What is the difference between the two?

What is the best way to complete disable debug string on Release?

Thank you in advance!

Labels (2)
Tags (1)
0 Kudos
Reply
3 Replies

1,431 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Fabio Benevento,

Please share more information,

-Which IDE ?

-Which chip ?

-What about your project ?

BR

Alice

0 Kudos
Reply

1,431 Views
LArmstrong1985
Contributor III

IDE - MCUXpresso

BOARD - FRDM-K64F

Project - Custom project based on usb mouse-keyboard with FREERTOS example. This project have several usb_echo call that print on console/uart using DbgPrintf. I would disable all this print on Release but I don't find a preprocessor define that do this.

0 Kudos
Reply

1,431 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Fabio,

When you import SDK demo project, you can choose "NewlibNano(none)", it will not print to debug console :

pastedImage_1.png

BR

Alice

0 Kudos
Reply