Skip to content

conflict between D0/D1 and USB for M4 with CP 3.0 #433

@jerryneedell

Description

@jerryneedell

This is more of a curiosity... I hope it makes sense.

Basic synopsis is that swapping the pins on a serial connection to an M4 running CP 3.0 causes the USB port to freeze and disconnect. Note that there is no UART support in CP3.0 at this time.

The full story:

I was trying out the new GPS library. It works fine in my Metro-M0 with CP 2.x. I mistakenly tried it on the Metro-M4 with CP 3.0 and of course found out that busio.UART is not yet implemented in 3.0 so not much to test...

However, I discovered that if I (mistakenly) connected the GPS TX to D1 and RX to D0 then my USB connection to the REPL would freeze and eventually disconnect. Sometime it took a few seconds (possibly waiting for a transmission)

For the Metro M0, D0 is configured as RX and D1 as TX - Connection the GPS to the M4 that way did not cause any problems with the USB connection.

Is this behavior expected. I realize it was a misconfiguration but it is not clear why it causes the USB connection to fail. Is this related to something in CP3.0 or is it related to the M4?

I was not able to replicate this problem using a USB to Serial cable- Neither pin orientation appeared to cause any problem.

I am using an "Ultimate GPS Breakout" - the USB connections are to /dev/ttyACM0 on a Linux box.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions