-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
printf not working with RP2040 #24
Comments
Try the following in Ardunio IDE - Works ! - Does not work in Platform IO!!
|
Not sure if it helps but is the complie debug:
|
Also seeing this on a Arduino Due |
Getting this on a Pi Pico also. It seems that printf isn't included in the RP2040 version of the Arduino framework. |
You can use the Disclaimer: On USB Serial at least, the printed characters of the current line are not sent out until a Minimal working example: #include <Arduino.h>
REDIRECT_STDOUT_TO(Serial);
void setup() {
delay(5000);
printf("Hello World!\n");
}
void loop() {
printf("%ld\n", millis());
delay(1000);
} platformio.ini: [env:pico]
platform = raspberrypi
board = pico
framework = arduino |
|
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);
This works in the ardinio IDE.
Thanks
The text was updated successfully, but these errors were encountered: