Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Printf() won't work in blinky app after bootloader #8

Open
LMESTM opened this issue Sep 6, 2017 · 0 comments
Open

Printf() won't work in blinky app after bootloader #8

LMESTM opened this issue Sep 6, 2017 · 0 comments

Comments

@LMESTM
Copy link

LMESTM commented Sep 6, 2017

The print won't be displayed in the console, when trying to add some prints to blinky example like below:

int main() {
    printf("blinky starts\r\n");
    while (true) {
        led1 = !led1;
        wait(0.5);
    }
}

We only see the prints from the bootloader:

It works ok though when changing the main to:

Serial pc(USBTX, USBRX);
int main() {
    pc.printf("blinky starts\r\n");
    while (true) {
        led1 = !led1;
        wait(0.5);
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant