9 years, 5 months ago.

Debug problem with OSX and ST Nucleo L152RE

Hi all, I'm a newbie, I've just begun messing around with mbed platform and I have close to 0 knowledge about the platform itself. I'm trying to debug a simple program (it does nothing, just print the debug message). When I try to connect to the USB port using the command:

screen /dev/tty.usbmodem1245

I just get a random char and nothing else, even pressing the reset button on the board.

This is the program I'm running on the board:

#include "mbed.h"

int main()
{
    printf("Hello World! \n\r");
}

What am I doing wrong?

I think I figured out what is the problem. Apparently debug works only on one of the 2 USB ports on my MacBook Pro. Changing the port fixed the issue.

posted by Gabriele Antonini 10 Nov 2014
Be the first to answer this question.