Skip to content

SDK driver for Print toggling Pin 0 (Uart0_TX) when pin is NOT assigned to Uart0 #2881

@jhinklejr

Description

@jhinklejr

CMakeLists.txt has the following Set:

# Modify the below lines to enable/disable output over UART/USB
#pico_enable_stdio_uart(HR_CPU 0)
pico_enable_stdio_usb(HR_CPU 1)

which should allow Print to go to USB and NOT pin 0/1 Uart0

I use pin 0 as a display reset line and have it configured as an output state = 1

When code issues a Print statement - pin 0 is toggled via a low level output driver (tracked using debugger - but only so far) .

Toggling pin 0 when Uart0 is NOT being used identifies a SDK driver issue.

commenting out "pico_enable_stdio_usb(HR_CPU 1)" makes pin 0 behave as expected - my only issue is I loose debugging info coming in from USB Print statements.

Hope that explanation helps to identify sdk bug.

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