HI, when I debugged example program provided by KSDK1.2.0 -- "C:\Freescale\KSDK_1.2.0\examples\frdmk64f\driver_examples\dspi\dspi_blocking\master\kds" using KDS3.0, I wanted to see if any "printf" can be shown in the "Semihosting and SWV". However, nothing appeared in the console.
I have followed the instruction "How to use printf() to print string to Console and UART in KDS". But it didn't work.
I have no idea about it. Could you please help me?
Many many thanks!
Hello Qingyan,
The insturction "How to use printf() to print string to Console and UART in KDS" is test on KDS2.0,
(1) As Erich said "KDS v2.0.0 and KDS v3.0.0 are using different libraries." , so if you want shown in the "Semihosting and SWV". , please configure like this :
(I test also on the demo you mentioned )
then on the code ,please use "printf();" , then run the code , you will see as this :
(2) About the demo project , the function of " PRINTF()" will show on the terminal :
Please have a try .
If still have any question , please contact us .
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Qingyuan ,
Which system about your PC ?
And the attachment is a simple project i create on KDS 3.0 , ksdk 1.2 , and please try on your side , check whether it can print to console view.
pay attention :
The linker option -specs=nosys.specs need to be changed to specify
-specs=rdimon.specs
If still this still can not work , please tell me !
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
(1) Oh, :smileysad: please show me the code you use to print to console ,
for example on my project , i use pirntf("test on console \n"); what about yours .
(2) Have you test on the project i send to you , and configure only have the "-specs=rdimon.specs" like this :

BR
Alice