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
已解决! 转到解答。
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------
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
Hello Pascal,
please, does the strange behavior relate with this post Unable to Debug after KDS Update ?
Thank your for your feedback!
Iva