Not able to see data in TeraTerm

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
abho_4730071
Level 4
Level 4
First like received

Hi Team,

Below is my PSoc creater design and code. I am using the below selected device. When i am trying to connect to TeraTerm i am not able to see any string. Even not able to type anything in teraterm.

pastedImage_2.png

pastedImage_1.png

Thanks,

Abinash

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinash-san,

> Please guide me where we are connecting DB9 with USB.

First of all, DO NOT USE DB9!

It is for RS232C level device, and your USB-Serial Converter will be damaged/broken if you connect it to DB9 pins.

In the picture you are seeing "COM3: USB Serial Port (COM3)".

I think that this happens when you connect the red board, which is a USB-Serial Converter, let me call it FTDI board from now on.

If you want to try the FTDI board.

Again, I'd like to ask you to try a loop-back test to test if the FTDI board is still functioning.

To do a loop-back test,

(1) Connect TXD and RXD of the FTDI board then connect the USB to the FTDI board and PC.

Note: In this test we do not use CY8CKIT-050

71iN2ErrkJL._SL1024_.jpg

(2) Then start Tera Term

(3) In Tera Term type something, and it should be echoed back.

(4) If you can see the echo back, the board is still working: GOTO "PLAN A"

     and if you do not see any echo back, probably the board is broken: GOTO "PLAN B"

PLAN A:

(1) Use my program uart_test_050_200723A

(2) Connect CY8CKIT-050 to PC using a USB Cable and use J1

(3) Connect GND of FTDI board to the GND of CY8CKIT-050

(4) Connect TXD of FTDI board to the P0_0 of CY8CKIT-050

(5) Connect RXD of FTDI board to the P0_1 of CY8CKIT-050

The white jumper wire is connected to P0_0 and the TXD of my USB-Serial Converter.

The green jumper wire is connected to P0_1 and the RXD of my USB-Serial Converter.

The black jumper wire is connected to the GND.

And a USB cable is connected to J1 and PC.

IMG_4314.JPG

Tera Term output was something like below.

The first line was written by the program.

The second and the third lines were typed by me.

030-ftdi-200725A.JPG

PLAN B:

(1) Use my program uart_test_050_200723C

(2) Connect CY8CKIT-050 to PC using a USB Cable and use J1.

(3) Connect CY8CKIT-050 to PC using a USB Cabke and use J2.

Note: NO OTHER wire should be connected.

(4) Compile and debug the program

When the debugger started, and stopped at the first line of the main().

Push "Resume" icon to keep the program running.

031-debug-test-C.JPG

(5) When the program started, Windows should report that it found a new Com Port Connection

(6) At this point, connect Tera Term to the USB Serial Device

Note: The port name of my screen shot is in Japanese, but it is saying "COM45: USB Serial Device (COM45)"

032-TearTerm-connection.JPG

(7) Then type letters in Tera Term, they should be echoed back

033-TeraTerm-USBUART.JPG

I hope that at least one of these plan will work.

Best Regards,

26-Jul-2020

Motoo Tanaka

View solution in original post

0 Likes
24 Replies
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

By any chance have you checked your previous question?

Not able to see serial port enabled in teraterm for (CY8CKIT-050)PSOC 5LP

If you are not seeing the string you are writing, probably you are having problem with connecting UART to PC.

Meantime, to echo back the input, you need to

(1) receive the letter

(2) write the letter

So I modified your program like below.

main.c

=====================

#include "project.h"

int main(void)

{

    uint8_t c ;

   

    CyGlobalIntEnable; /* Enable global interrupts. */

    UART_Start() ;

    UART_PutString("\x1b[2J\x1b[;H") ; /* clear screen */

    UART_PutString("This is an ECHO program\n\r") ;

   

    for (;;) {

        if (UART_GetRxBufferSize() > 0) { /* received some data */

            c = UART_GetByte() ;

            if ((c != 0) && (c != 0xFF)) {

                UART_PutChar(c) ;

            }

        }

    }

}

=====================

I used the same schematic and pin configuration with your previous project.

Note: isr_Rx and LED are not required in this project, though.

001-schematic.JPG

002-pins.JPG

And I used the second method I introduced in the previous discussion (using a KitProg)

The result Tera Term log was

Note: I typed "Hello World!" and "This ..."

000-teraterm-log.JPG

moto

0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Suddenly it came up to my mind that..

You don't want add any other hardware and/or cable, right?

So I tried another kludge.

I did the following steps.

(1)   I used the USBFS-UART sample from the previous discussion and modified it to echo  back the letter typed.

main.c

==================

#include "project.h"

#define USBFS_DEVICE    (0u)

char detorecibido ;

int main(void)

{

    uint16 count;

   

    CyGlobalIntEnable; /* Enable global interrupts. */

    /* Start USBFS operation with 5-V operation. */

    USBUART_Start(USBFS_DEVICE, USBUART_5V_OPERATION);

    for(;;) {

       /* Host can send double SET_INTERFACE request. */

        if (0u != USBUART_IsConfigurationChanged())

        {

            /* Initialize IN endpoints when device is configured. */

            if (0u != USBUART_GetConfiguration())

            {

                /* Enumeration is done, enable OUT endpoint to receive data

                 * from host. */

                USBUART_CDC_Init();

            }

        }

        /* Service USB CDC when device is configured. */

        if (0u != USBUART_GetConfiguration())

        {

            /* Check for input data from host. */

            if (0u != USBUART_DataIsReady())

            {

                detorecibido = USBUART_GetChar() ;

                USBUART_PutChar(detorecibido) ;

            }

        }

    }

}

==================

(2) Started debugger to write the program to the board. With the USB cable connected to J1.

IMG_4301.JPG

(3) When program is written and the debugger is ready, just quit the debugger.

011-debugger.JPG

(4) Then disconnect the USB mini plug from J1 and connect it to J2.

IMG_4302.JPG

(5) Then connect Tera Term to your board.

I could type letters and they were echoed back.

010-teraterm-log.JPG

Probably, you could use same method to run the USBFS program in the previous discussion, too.

moto

Hi Motoo,

I can able to type after changing from J1 to J2, but while executing the program i am getting the below error.

pastedImage_0.png

pastedImage_1.png

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinah-san,

> I can able to type after changing from J1 to J2, but while executing the program i am getting the below error.

This is pretty natural, as the debugger requires J1 and UART requires J2.

So I wrote "Quit" debugger before changing the connection from J1 to J2.

Only if you have another USB A-miniB cable, you can connect both J1 and J2 to PC.

Then you can debug and use UART same time.

This was the (3) in my previous response

Not able to see serial port enabled in teraterm for (CY8CKIT-050)PSOC 5LP

Best Regards,

24-Jul-2020

Motoo Tanaka

0 Likes

Hi Motoo,

I am not able to type anything to the Tera Term. Even not able to see the output also in TeraTerm. I am using your PSOC program u shared above.Please help me on this.

pastedImage_0.png

pastedImage_1.png

Thanks,

Abinash

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinash-san,

I just tried downloading my attachment and built and ran.

Things I can imagine are

(1) Serial port setup of TeraTerm

Please make sure the Speed is 115200.

Port name may vary depending on your system.

012-TeraTerm-setup.JPG

(2) About COM3, can you see the COM3 even without CY8CKIT-050 connected?

Then please use the pull down menu of port and try other COM port number if you see others, too.

Please make sure that USB Serial Device is shown in the Device Manager of Windows when CY8CKIT-050 is connected.

(3) Before typing in, please click the TeraTerm window to make the window active.

Best Regards,

23-Jul-2020

Motoo Tanaka

0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

In case you have not done it.

Down load and expand the attached ini file and copy it to

<project>\CortexM3\ARM_GCC_541\Debug

Before you connect the CY8CKIT-050 to PC via J2

013-ini-file.JPG

moto

0 Likes

Hi motoo,

I am using DB9 connector and i integrated RX,TX and Ground pin with the USB port with the help of TTL converter.

Trying to give same port no my case Com3 and all the same configuration. So not sure why i am not able to type any key to TeraTerm.

Let me know how can i make the window active to type it?

pastedImage_0.png

Thanks,

Abinash

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinash-san,

> I am using DB9 connector and i integrated RX,TX and Ground pin with the USB port with the help of TTL converter.

With this information, story is totally different now.

First of all, do not use my "USBFS - UART" version, but please use "UART" version.

Namely, uart_test_050_200721A should be OK.

Not able to see serial port enabled in teraterm for (CY8CKIT-050)PSOC 5LP

Then I'd like to ask you to test a couple of things.

(1) Your USB-Serial converter's loop back test.

Use a jumper wire and connect (short) tx and rx, then connect your DB9-USB converter and TeraTerm.

You should see what you are typing. If not, there is/are problem with your hardware/cable.

Note: Although I did not connect DB9, please connect yours.

IMG_4306.JPG

(2) Connect UART signals to DB9

In the project uart_test_050_200721A

Rx_1 : P0[0]

Tx_1 : P0[1]

So use a couple of jumpers to connect

P0_0 to tx

P0_1 to rx

Connect your DB9-USB converter and TeraTerm.

Then download and debug the project.

IMG_4307.JPG

Best Regards,

23-Jul-2020

Motoo Tanaka

P.S. FYI, Previously attached uart_test_050_200723A in this thread should work, too.

0 Likes

Hi Motoo,

Even though i connected wire i am not able to type anything in the TeraTerm.

Thanks,

Abinash

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinah-san,

I have proposed a few configurations and sample programs.

> Even though i connected wire i am not able to type anything in the TeraTerm.

Please specify which configuration and/or program you are trying?

If you are using connection

(1) J1 to PC and DSB9 to PC (via RS232-C converter)

Did you try the loop back test?

Did it work?

And is the program under test uart_test_050_200723A?

If this is the case, may be you need to swap connection of tx and rx.

(2) J1 to PC for download/debug and J2 for test

You don't need additional wire.

Additional USB cable may help though.

If this is the case, please use uart_test_050_200723C.

Note: If you connect both J1-PC and J2-PC using USB A-miniB cable,

you can debug and test terminal input/output at the same time.

Best Regards,

24-Jul-2020

Motoo Tanaka

0 Likes

Hi Motoo,

I tried loop back test . Still i could not able to type in TeraTerm.

Then i wired tx and rx to P0[0] and P0[1] and viceversa. Then i tried P12[6] and P12[7] . it did not work as i shown in previous post image.

Please let me know where i am legging behind?

Is there any RTS,CTS pin required? I am using only RXD,TXD,GND pin.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinash-san,

Would you please teach me the following?

(1) WHAT is the board you are using to connect the DB9 and PC?

(2) And what is the expected voltage for TX and RX?

(3) Which pin(s) in the following circuit are you connecting the signals?

(4) What is the cable connecting the red board to PC? (USB A - microB) or (USB A - miniB)?

(5) What is the program are you testing?

020-050-RS232.JPG

> I tried loop back test . Still i could not able to type in Tera Term.

So you short the TX and RX of your RED BOARD and tried to type something from the Tera Term, right?

And did you get echo back when you type something from the Tera Term?

If you did not get echo back, the RED BOARD is not working.

If you got echo back OK, then we need to make sure the specification of the RED BOARD.

> Is there any RTS,CTS pin required? I am using only RXD,TXD,GND pin.

NO, only RXD, TXD and GND will be fine.

But you need to make sure the voltage of RXD and TXD, can you measure the voltage between your RED BOARD's TXD and GND?

And if the RED BOARD is connected to PC using a USB Cable (A - miniB),

you may be able to disconnect the cable from the RED BOARD and use the cable to connect J2 and PC.

And try uart_test_050_200723C program.

Best Regards,

24-Jul-2020

Motoo Tanaka

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinash-san,

I searched your red board, it looks like the one below.

There are many "compatible" board, but basically it is using a FTDI232RL or compatible device.

71iN2ErrkJL._SL1024_.jpg

And voltage level of this device/board is 3.3V or 5V.

Meantime RS232C level is 5V ~ 15V.

So if you have connected RXD to Pin2 of DB9 (TX), you may have already burned the device.

Please try disconnect the TX, RX signal between your RED BORAD and CY8CKIT-050.

And connect TXD and RXD of the RED BOARD directly and try connect it to PC and

from Tera Term, type something.

If no letter (char) is echo back, quite likely the board (or the device) is dead.

It it echos back letters entered via Tear Term, try connect TXD and RXD to

RED BOARD TXD - P0[0] (Rx_1)

RED BOARD RXD - P0[1] (Tx_1)

RED BOARD GND - GND of CY8CKIT-050

And try uart_test_050_200723A.

Meantime, I hope that this board is also using USB (A - miniB) cable,

so disconnect USB miniB plug from this board and connect the miniB plug

to the CY8CKIT-050's J2.

And try uart_test_050_200723C.

Best Regards,

24-Jul-2020

Motoo Tanaka

0 Likes

Hi Motoo,

(1) WHAT is the board you are using to connect the DB9 and PC?

CY8CKIT-050 5LP

(2) And what is the expected voltage for TX and RX?

Anything is fine

(3) Which pin(s) in the following circuit are you connecting the signals?

P0[0] - Rx

P0[1] - Tx

Also tried with

P12[6] -RX

P12[7]-TX

(4) What is the cable connecting the red board to PC? (USB A - microB) or (USB A - miniB)?

MiniB USB

(5) What is the program are you testing?

Same program u shared (uart_test_050_200723A)

pastedImage_0.png

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinash-san,

> (1) WHAT is the board you are using to connect the DB9 and PC?

> CY8CKIT-050 5LP

I was asking the board name of the board between CY8CKIT-050 and PC.

But from the picture, I assumed that it is a USB-Serial converter using FTDI232RL or compatible.

Since the USB-Serial converter is using USB A-miniB cable,

you can disconnect the cable from the USB-Serial Converter and connect it to J2 of CY8CKIT-050,

so that you have 2 USB cable connection between your CY8CKIT-050 and PC.

Then try uart_test_050_200723C.

Note: please don't forget to place USBUART_cdc.inf file at

<project>\CortexM3\ARM_GCC_541\Debug

after you build the program and before you start the debugger.

Best Regards,

24-Jul-2020

Motoo Tanaka

0 Likes

Hi Motoo,

From DB9 to pc why i am unable to read my string?

pastedImage_0.png

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinash-san,

If you are connecting the wire to DB9's pins, such as pin 2 (TX) and pin 3 (RX),

their voltage is RS232C level, so if you connect FTDI device directly, it will damage (destroy) the FTDI device.

020-050-RS232.JPG

To avoid above situation, you should not connect FTDI's TXD and RXD to DB9,

but connect directly to the PSoC's pins P0[0] and P0[1].

But before trying it please try the loop-back test to make sure that the FTDI device is still alive.

To do this, disconnect FTDI (Red board) from DB9 and connect (or short) TXD and RXD of FTDI.

Then connect the FTDI board to PC and start Tera Term.

If FTDI board is alive, the letter you type in the Tera Term will be echoed back.

(You should be able to see what you are typing)

If this does not happen, pretty likely the FTDI device has been damaged and not working anymore.

So I suggested you to use the "Plan B", which is using 2 USBs on the board, J1 and J2.

And use my sample of using USBUART.

This time as you have 2 connections, the debugger should work fine.

Meantime, if the above loop-back test is working, which you can see what you are typing.

Then connect TXD and RXD to just like the case (1) in

Not able to see serial port enabled in teraterm for (CY8CKIT-050)PSOC 5LP

Best Regards,

24-Jul-2020

Motoo Tanaka

0 Likes

For this any baud rate and other parameter is required?

How can we integrate with .net application if we are using the plan 2?

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinash-san,

So did the "Plan B" worked or not?

As far as I tested no baud rate setting was required from the PSoC side,

I assume that it's been taken care of by the USBFS(USBUART) component.

Please read the data sheet of USBFS and/or USBUART component.

Meantime, I think that we have been trying to help you to connect CY8CKIT-050

to COM port of PC and I hope that I have shown you a few working examples.

All of them were working in my side of the planet with healthy hardware(s).

So I would like to ask you

(1) Mark my response(s) as helpful or Correct Answer if it is so.

(2) Create a new discussion/question with appropriate tile and ask how you can integrate the project into .net application.

    May be you can use your discussion below

How can i integrate Psoc with c#.net?

Best Regards,

25-Jul-2020

Motoo Tanaka

0 Likes

Hi Motoo,

Please guide me where we are connecting DB9 with USB.

I have done all the setup as discussed, but not able to connect properly. While connecting it should show USB-UART I guess(Highlighted one).

I tried loopback test. but its not working.

Loop_back_test.PNG

pastedImage_0.png

Thanks,

Abinahs

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abinash-san,

> Please guide me where we are connecting DB9 with USB.

First of all, DO NOT USE DB9!

It is for RS232C level device, and your USB-Serial Converter will be damaged/broken if you connect it to DB9 pins.

In the picture you are seeing "COM3: USB Serial Port (COM3)".

I think that this happens when you connect the red board, which is a USB-Serial Converter, let me call it FTDI board from now on.

If you want to try the FTDI board.

Again, I'd like to ask you to try a loop-back test to test if the FTDI board is still functioning.

To do a loop-back test,

(1) Connect TXD and RXD of the FTDI board then connect the USB to the FTDI board and PC.

Note: In this test we do not use CY8CKIT-050

71iN2ErrkJL._SL1024_.jpg

(2) Then start Tera Term

(3) In Tera Term type something, and it should be echoed back.

(4) If you can see the echo back, the board is still working: GOTO "PLAN A"

     and if you do not see any echo back, probably the board is broken: GOTO "PLAN B"

PLAN A:

(1) Use my program uart_test_050_200723A

(2) Connect CY8CKIT-050 to PC using a USB Cable and use J1

(3) Connect GND of FTDI board to the GND of CY8CKIT-050

(4) Connect TXD of FTDI board to the P0_0 of CY8CKIT-050

(5) Connect RXD of FTDI board to the P0_1 of CY8CKIT-050

The white jumper wire is connected to P0_0 and the TXD of my USB-Serial Converter.

The green jumper wire is connected to P0_1 and the RXD of my USB-Serial Converter.

The black jumper wire is connected to the GND.

And a USB cable is connected to J1 and PC.

IMG_4314.JPG

Tera Term output was something like below.

The first line was written by the program.

The second and the third lines were typed by me.

030-ftdi-200725A.JPG

PLAN B:

(1) Use my program uart_test_050_200723C

(2) Connect CY8CKIT-050 to PC using a USB Cable and use J1.

(3) Connect CY8CKIT-050 to PC using a USB Cabke and use J2.

Note: NO OTHER wire should be connected.

(4) Compile and debug the program

When the debugger started, and stopped at the first line of the main().

Push "Resume" icon to keep the program running.

031-debug-test-C.JPG

(5) When the program started, Windows should report that it found a new Com Port Connection

(6) At this point, connect Tera Term to the USB Serial Device

Note: The port name of my screen shot is in Japanese, but it is saying "COM45: USB Serial Device (COM45)"

032-TearTerm-connection.JPG

(7) Then type letters in Tera Term, they should be echoed back

033-TeraTerm-USBUART.JPG

I hope that at least one of these plan will work.

Best Regards,

26-Jul-2020

Motoo Tanaka

0 Likes

     Thanks a lot Motoo,

Plan A is failed but Plan B is working fine.

Hi Motoo,

I used jumped wire as below. Connected DB9 with the help of TTL.

But facing same issue. Not able to see output in TeraTerm and also not even able to type there.

IMG_20200723_222120.jpg

Thnaks,

ABINASH

0 Likes