serial console on KDS on KL25Z

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

serial console on KDS on KL25Z

ソリューションへジャンプ
2,598件の閲覧回数
ise1
Contributor III

Hello everybody !
I have some trouble to display variables and strings on Kinetis Design Studio with my KL25Z board. I specify I have KDS 2.0.0 for Ubuntu (which means the lastest available version).
Here is what I've done: with processor expert mode, I've added the "AsynchroSerial" Component and specify Transmitter and Receiver on UART1_TX and UART1_RX pins respectively. I also set the Baud Rate at 9600 Baud.

In my main function, I've used the AS1_SendChar() in a for(;;) loop:

     for(;;)

     {

         AS1_SendChar('A');

     }

The build is ok ! When I'm plugging my board, I've noticed that /dev/ttyACM0 appears. So, I've done: screen /dev/ACM0 in order to see the ouput.
But when I debug my projects, I see nothing on my terminal even if I expected to see the 'A' character !

So are there anyone who know what's going wrong ? or maybe an other method to display variables and strings on a terminal ?

Thanks :smileywink:

1 解決策
1,949件の閲覧回数
adriancano
NXP Employee
NXP Employee

Hi,

Are you using the FRDM-KL25, if yes the KL25 Tx and Rx lines you need to configure to see the output in the Terminal through the OpenSDA connector are :

PTA1/TSI0_CH2/UART0_RX/FTM2_CH0

PTA2/TSI0_CH3/UART0_TX/FTM2_CH1

Also, for your reference, attached you can find the Serial_LDD component user guide. You can check there the typical usage configurations. You can use it to send and receive characters and strings.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,950件の閲覧回数
adriancano
NXP Employee
NXP Employee

Hi,

Are you using the FRDM-KL25, if yes the KL25 Tx and Rx lines you need to configure to see the output in the Terminal through the OpenSDA connector are :

PTA1/TSI0_CH2/UART0_RX/FTM2_CH0

PTA2/TSI0_CH3/UART0_TX/FTM2_CH1

Also, for your reference, attached you can find the Serial_LDD component user guide. You can check there the typical usage configurations. You can use it to send and receive characters and strings.

0 件の賞賛
返信
1,949件の閲覧回数
ise1
Contributor III

Yes ! Thanks a lot Adrian !
Now, I see my 'A' loop on my terminal ! :smileywink:
Time to display the sensor's output now !
Thanks again !