Skip to content
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

UART not pulling down properly on Rock5B #109

Open
Zipdox2 opened this issue Jul 6, 2023 · 11 comments
Open

UART not pulling down properly on Rock5B #109

Zipdox2 opened this issue Jul 6, 2023 · 11 comments
Assignees

Comments

@Zipdox2
Copy link

Zipdox2 commented Jul 6, 2023

I'm trying to use UART but the Rock5B is not pulling down the line properly, see the scope screenshot. This is with nothing else connected. Just the scope connected directly to the GND and TX pins.

Screenshot from 2023-07-07 00-48-45

I tried it with UART7_M2 and UART4_M2. Both had the same issue. Someone in the Radxa discord said it could be that the drive strength is too low.

@Zipdox2
Copy link
Author

Zipdox2 commented Jul 7, 2023

It appears UART2 M2 works, but /dev/ttyS2 is owned by the tty group, not the dialout group.

@RadxaYuntian
Copy link
Member

Please tell us the system image you are using.

@Zipdox2
Copy link
Author

Zipdox2 commented Jul 7, 2023

rock-5b_debian_bullseye_cli_b36

@Zipdox2
Copy link
Author

Zipdox2 commented Jul 7, 2023

UART3 M1 also works fine.

@Zipdox2
Copy link
Author

Zipdox2 commented Jul 7, 2023

UART7 M1 also works. Very weird. At least I have 2 working UARTs now, but this still needs to get fixed.

@RadxaYuntian
Copy link
Member

So which UART is not working correctly now?

@Zipdox2
Copy link
Author

Zipdox2 commented Jul 20, 2023

Works:

  • UART2 M2
  • UART3 M1
  • UART7 M1

Does not work:

  • UART4_M2
  • UART7_M2

Not tested:

  • UART2 M0
  • UART1 M1 (RX only)

@RadxaYuntian
Copy link
Member

@nascs please check this when you are back.

@nascs
Copy link
Contributor

nascs commented Feb 18, 2024

I downloaded the same image(rock-5b_debian_bullseye_cli_b36) but did not reproduce the problem, after restarting with UART7_M2 enabled and connecting pin 26 to GND, I measured 0V on pin 26, and after connecting pin 26 to 5V, I measured 5V on pin 26.

@RadxaYuntian
Copy link
Member

Please check if you can get it actually working as an UART. Not connecting to external pull up and pull down.

@nascs
Copy link
Contributor

nascs commented Feb 20, 2024

It can be sent and received normally as a uart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants