Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] RK3566 Uart3 Noise or Meaningless Data Issue

67

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
67

【Linux】 RK3566 Uart3 Noise or Meaningless Data Issue

Posted at 7/25/2023 00:49:55      View:1163 | Replies:1        Print      Only Author   [Copy Link] 1#
  • Type: Self-Compiled Firmware
  • SDK Package Name: ROC-RK3566-PC_Rk356x_v1.3.2f_230724.img
  • Last Commit: 0000-00-00 00:00:00
  • Modification Content: &uart3 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart3m1_xfer>; }; status set to "okay"
  • Log: test.zip
Problem description and steps to reproduce:
Hi, We have ROC-RK3566-PC-V1.2
We want to use uart3.
For this reason I applied the following steps.


Step 1: I compiled your ubuntu 18.04 sdk and booted  on our device.
Step 2: I enabled uart3 in k356x_linux_release_v1.3.0b_20221213/kernel/arch/arm64/boot/dts/rockchip/rk3568-firefly-port.dtsi like following line

&uart3 {
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&uart3m1_xfer>;
};
I set status set to "okay"
Step 4: Recompile and update image on device
Step 5: Setup the serial settings with stty with command on the following line
- stty -F /dev/ttyS3 ospeed 115200 ispeed 115200 cs8
- stty -F /dev/ttyS3 raw  


Now, I can see the /dev/ttyS3 serial point  but I have some problems to communication with ttyS3

I am constantly getting data that looks like meaningless or noise.

This dataset looking like that: b2 b2 f6 f6 90 b2 b2 f6 f6 90 b2 b2 f6 f6 90 b2 b2 f6 f6 90
and this data repeating always




On the ROC-RK3566-PC Specification pdf the uart3 sharing pin with AUDIOPWM
May be it is our problem.

How can I fix this problem ?
Is our method of the enabling UART3 correct ?

test.zip

154 Bytes, Down times: 0

Reply

Use props Report

67

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
67
Posted at 7/25/2023 04:20:08        Only Author  2#
Last edited by myarikkaya In 7/25/2023 04:21 Editor

I solve my problem.

The original dtsi file looking like this
  1. &uart3 {
  2.         status = "okay";
  3.         pinctrl-names = "default";
  4.         pinctrl-0 = <&uart3m1_xfer>;
  5. };
Copy the code



I applied that
  1. &uart3 {
  2.         status = "okay";
  3. };
  4. (delete the pinctrl-0 and pinctrl-names)
Copy the code


Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list