printf(0, IAR & Kwikstick

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

printf(0, IAR & Kwikstick

1,251件の閲覧回数
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 件の賞賛
返信
1 返信

852件の閲覧回数
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 件の賞賛
返信