Skip to content

Problems with Serial.print #1025

Closed
Closed
@github-rkaiser

Description

@github-rkaiser

Hi Uri,

I get a weird error message

> /rp2040/tools/pqt-gcc/4.0.1-8ec9d6f/bin/../lib/gcc/arm-none-eabi/14.2.0/../../../../arm-none-eabi/bin/ld: /sketch/_wokwi_mbed_speedup_patch.cpp.o: in function `_GLOBAL__sub_I__wokwi_mbed_speedup_patch.cpp':
> /sketch/_wokwi_mbed_speedup_patch.cpp:5:(.text.startup._GLOBAL__sub_I__wokwi_mbed_speedup_patch.cpp+0x4): undefined reference to `rtos_attach_idle_hook'
> collect2: error: ld returned 1 exit status
> Error during build: exit status 1/rp2040/tools/pqt-gcc/4.0.1-8ec9d6f/bin/../lib/gcc/arm-none-eabi/14.2.0/../../../../arm-none-eabi/bin/ld: /sketch/_wokwi_mbed_speedup_patch.cpp.o: in function `_GLOBAL__sub_I__wokwi_mbed_speedup_patch.cpp':
> /sketch/_wokwi_mbed_speedup_patch.cpp:5:(.text.startup._GLOBAL__sub_I__wokwi_mbed_speedup_patch.cpp+0x4): undefined reference to `rtos_attach_idle_hook'
> collect2: error: ld returned 1 exit status
> Error during build: exit status 1

when I use Serial instead of Serial1:

Serial.begin(115200); // Initialize the serial port. Without 
Serial.println("Embedded C++ (www.rkaiser.de) - serial port ready");

in my Raspberry Pi project. In the past I could workaround this by removing in diagram.json the lines in connections with

["pico:GP0","$serialMonitor:RX ...
["pico:GP1","$serialMonitor:TX ...

and since I have not seen these lines, it took me hours to find the reason.

Is there still a way to use Serial instead of Serial1?

Thanks
Richard

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions