KDS 3.0.0 unable to debug

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KDS 3.0.0 unable to debug

ソリューションへジャンプ
2,817件の閲覧回数
pascalschröer
Contributor V

Hi to all,

 

I would like to change my current IDE (CW 10.6) to KDS 3.0.0 in my new projects. I'm using

the PEmicro Multilink to flash and debug the uC's. For this test condition I tried to debug a

Kinetis MK10DX128VLH7.

 

I installed the newest version of KDS (3.0.0) and tried to debug a default "new Project",

but I never reached the main() function. The program didn't leave the the startup code

(reset Handler). Do I have to disable a watchdog or something like this?

 

 

Does anyone have a solution for this strange behavior?

 

 

Thanks for your help,

 

 

Pascal

ラベル(1)
0 件の賞賛
返信
1 解決策
2,253件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Pascal,

I reproduced your problem on my side under KDS3.0.

you are right we need to disable watchdog. the problem is because of the watchdog reset.

disable watchdog in SystemInit() can solve the problem.

I will  attached my demo code and video.

can this help you?


Have a great day,
Zhang Jun

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

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,254件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Pascal,

I reproduced your problem on my side under KDS3.0.

you are right we need to disable watchdog. the problem is because of the watchdog reset.

disable watchdog in SystemInit() can solve the problem.

I will  attached my demo code and video.

can this help you?


Have a great day,
Zhang Jun

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

0 件の賞賛
返信
2,253件の閲覧回数
pascalschröer
Contributor V

Thanks! That solved my problem!

Have a nice day!

Pascal

0 件の賞賛
返信
2,253件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hi Pascal,

so your program dies somewhere between the reset and on the way to main().

See tip #16 in Debugging Failure: Check List and Hints | MCU on Eclipse

Then step trough the code (note: you might not be able to step through the disable-the-watchdog code: set a breakpoint after that.

It could be that the program dies in the library startup code (are you using C++?). If so, try to increase the heap size in the linker file.

I hope this helps,

Erich

0 件の賞賛
返信
2,253件の閲覧回数
ivadorazinova
NXP Employee
NXP Employee

Hello Pascal,

please, does the strange behavior relate with this post Unable to Debug after KDS Update ?

Thank your for your feedback!

Iva

0 件の賞賛
返信