10 years, 5 months ago.

SerialPC

Hello,

I see that nobody has reported this, so I may be doing something stupid but I don't understand what. I compile, download and run the following program

include the mbed library with this snippet

#include "mbed.h"

Serial pc(USBTX, USBRX); // tx, rx

int main()
{
    while (1) {
        pc.printf("Hello World!\n");
        wait(.2);
    }
}

open either screen (sudo screen /dev/ttyACM0) or minicom (sudo minicom and make sure that it's set to 9600, 8bits, 1 stop bit, no parity) and I see maybe 20-30 lines being output on the console (Debian testing) and then it hangs. Sometimes the string is messed up. Firmware on the board is 0202 but the new revision does not mention serial communication.

Has anybody any suggestion?

Thanks, michele

Question relating to:

The Freedom-K64F is an ultra-low-cost development platform for Kinetis K64, K63, and K24 MCUs.

Ah, it seems that at least with minicom I need to add a carriage return (Ctrl-a z u) and it mostly works fine, i.e. it doesn't hang after the first approx 20 lines.

posted by Michele Zaffalon 14 Jun 2014
Be the first to answer this question.