AnsweredAssumed Answered

Has anyone been able to get printf to work in a C++ application?

Question asked by dave408 on Mar 12, 2015
Latest reply on Mar 17, 2015 by Alice_Yang

I'm still working on getting KDS 2.0 to work with KSDK 1.1 with a C++ application.  I have started with the simplest of applications, which is basically what comes out of the new KDS Project wizard, the addition of all necessary include folders, the linker libraries, and a printf statement.  Whether I try printf or putchar, nothing goes to the serial port.  Instead, the program seems to reset over and over again.  In the screenshot below, if I hit F6 to single step over the printf, it ends up back at main.



If I don't use the printf and stick with the default behavior from the wizard (increment a counter), it works fine.


Has anyone had luck with this?  I've included my project here.  If anyone is willing to take a look at it and see if there's anything wrong, I would appreciate it!  You can import it by using File -> Import -> Project of projects.  Thanks!

Original Attachment has been moved to: