Skip to content

printf not working with RP2040 #24

Open
@fabltd

Description

@fabltd

Hi

I have some example RP2040 code that works in the Ardunio IDE without fail. When ported to Platform IO the code fails on the following:

Serial.printf("timers_init failed - %d\n", err_code);

src/main.cpp: In function 'void loop()':
src/main.cpp:22:10: error: 'class arduino::UART' has no member named 'printf'; did you mean 'print'?
   22 |   Serial.printf("timers_init failed - %d\n", err_code);

This works in the ardinio IDE.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions