Usage of command blhost -d/--debug command

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

Usage of command blhost -d/--debug command

1,632 次查看
srinivasa_raow
Contributor I

Hi,

I am working on Kinetis bootloader and want to bring out debug statements on the console.

 

After browing through the code I found below statement everywhere.

 

#if DEBUG && !DEBUG_PRINT_DISABLE

 

#endif

 

I have DEBUG defined.  Which is the right place to define DEBUG_PRINT_DISABLE as 0?

 

Another question:

If I run command "blhost -d", I was expecting print detailed log information.  But I could do it.

 

Please  give examples of using blhost -d/debug usage.

 

Regards

Srinivasa

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

1,397 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Srinivasa Rao Wunnimani,

     1. define DEBUG_PRINT_DISABLE as 0

Normally, if you want to define the according symbols, you can defined it in the project options, take IAR project as an example:

pastedImage_1.png

But, if you want to define DEBUG_PRINT_DISABLE as 0, just don't define it, leave it in default is OK.

2. give examples of using blhost -d/debug usage.

About the debug usage, you can find it from the blhost printf information.

The following is the command usage on my side:

pastedImage_3.png

Take get property as an example:

pastedImage_2.png

Wish it helps you!

If you still have question, please let me know!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,397 次查看
srinivasa_raow
Contributor I

Hi Kerry,

I am working on TWR-K22F120M and KBoot version is V2.0.

Regards

Srinivasa

0 项奖励
回复

1,397 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Srinivasa Rao Wunnimani,

   What the kinetis chip you are using? and what the KBOOT version you are using now?

 

Kerry

0 项奖励
回复