KDS 3.0.0 unable to debug

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

KDS 3.0.0 unable to debug

Jump to solution
2,776 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
2,212 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
4 Replies
2,213 Views
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 Kudos
Reply
2,212 Views
pascalschröer
Contributor V

Thanks! That solved my problem!

Have a nice day!

Pascal

0 Kudos
Reply
2,212 Views
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 Kudos
Reply
2,212 Views
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 Kudos
Reply