serial console on KDS on KL25Z

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

serial console on KDS on KL25Z

跳至解决方案
2,586 次查看
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,937 次查看
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,938 次查看
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,937 次查看
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 !