Re: How to write a string to serial?


kk <pinganddu90@...>
 

Thanks all, I have solve the problem by using:
    for(;;)
    {
        printk("Hello World\n");
    }
But those were all garbled on the minicom. How about yours? How yours see the debug information from serial generally?

On Thu, Mar 30, 2017 at 8:21 AM, Qiu, PeiyangX <peiyangx.qiu@...> wrote:

You can try changing the serial connections.

Green -> RX

White -> TX

Black -> GND

 

From: zephyr-users-bounces@lists.zephyrproject.org [mailto:zephyr-users-bounces@lists.zephyrproject.org] On Behalf Of kk
Sent: Wednesday, March 29, 2017 10:57 PM
To: zephyr-users@lists.zephyrproject.org
Subject: [Zephyr-users] How to write a string to serial?

 

Hi all

I am new to this mailing list.

I connect my arduino 101 to minicom, I have set the serial port:
    ttyUSB0 8N1

I use the Adafruit 4 pin cable (PL2303)

    black Ground connect GND on arduino 101

    green Receive connect TX->1 on arduino 101

    white Transmit connect  RX->1 on arduino 101

I run the hello_world program:

    make BOARD=arduino_101 flash

everything go well, but I can't see the "Hello World! x86" on the minicom.
I use the BOARD=qemu_x86, I can see the string "Hello World! x86"

So my question is how to write a string to serial?

Thanks!

 

 

 


Join {users@lists.zephyrproject.org to automatically receive all group messages.