AnsweredAssumed Answered

KDS v3.2.0 and KSDK 2.0 semihosting not working

Question asked by Robert Baruch on Mar 25, 2016
Latest reply on Apr 10, 2016 by ZhangJennie

This is on a K64F board. I used New > Kinetis SDK 2.x Project to start. I went to main.c and added #include <stdio.h> and a printf:

 

#include "board.h" #include "pin_mux.h" #include "clock_config.h" #include <stdio.h>  /*!  * @brief Application entry point.  */ int main(void) {   /* Init board hardware. */   BOARD_InitPins();   BOARD_BootClockRUN();   BOARD_InitDebugConsole();     printf("Greetings\r\n");     /* Add your code here */     for(;;) { /* Infinite loop to avoid leaving the main function */     __asm("NOP"); /* something to use as a breakpoint stop while looping */   } }

 

I went to the build settings and changed --specs=nosys.specs to --specs=rdimon.specs, and then went to the debug configuration and made sure enable semihosting was checked (output to both telnet and GDB console).

 

I ran the program, but all that appeared in the Semihosting and SWV console was this:

 

SEGGER J-Link GDB Server V5.10u - Terminal output channel

 

Nothing else.

 

Any ideas to try?

 

Thanks!

Outcomes