Correct disable Debug Printf in Release

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Correct disable Debug Printf in Release

1,691 次查看
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!

标签 (2)
标记 (1)
0 项奖励
回复
3 回复数

1,427 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Fabio Benevento,

Please share more information,

-Which IDE ?

-Which chip ?

-What about your project ?

BR

Alice

0 项奖励
回复

1,427 次查看
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 项奖励
回复

1,427 次查看
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 项奖励
回复