printf(0, IAR & Kwikstick

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

printf(0, IAR & Kwikstick

1,166 Views
BenG
Contributor III

Maybe I'm being dumb but where does printf() print to?

 

I'm using:

-IAR

-Kinetis KwikStik

-MQX 3.7

 

I'm connecting to the KwikStik using the On-board JTAG/J-Link USB socket but I understand that when this port is working as a J-Link socket it can't work as a USB/Comm Port

 

I've been using IAR for a number of years, but I'm new to MQX and KwikStik, so I'm working through some of the examples. Al lot of the time these examples are using printf() to display a message - but I can't work out where printf() is printing to?

0 Kudos
Reply
1 Reply

767 Views
Dekiru
Contributor IV

Hi,

 

Kwikstik has 2 micro AB USB port.

One is for JLink, the other one is for USB (device) functionality.

So you can use Kinetis's USB function when you are debugging your app with JLink.

 

With MQX for Kwikstik, the default serial port (where printf puts data out) is ttyf (defined in Freescale MQX 3.7\config\kwikstikk40x256\user_config.h and Freescale MQX 3.7\mqx\source\bsp\kwikstikk40x256\kwikstikk40x256.h), it means that printf data will be out at DB9 on TWR_SER card (if you have tower elevator system). If you don't have, I am afraid of that you have to get that data via some test pads on the board.

 

Regards

0 Kudos
Reply