PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2656
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 3:07 pm

Run this command and post the output (just the last line that starts http://paste.debian.net/):

Code: Select all

$ sudo apt install pastebinit
$ dtc -I fs /proc/device-tree | pastebinit

rlev
Posts: 76
Joined: Sat Dec 15, 2018 2:20 pm

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 3:43 pm

PhilE,

Code: Select all

http://paste.debian.net/1136775/

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2656
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 4:43 pm

The "uart1" node (/soc/[email protected]) is disabled, hence the problem. Do you have "enable_uart=1" in you config.txt?

rlev
Posts: 76
Joined: Sat Dec 15, 2018 2:20 pm

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 5:09 pm

PhilE,

YES I am using "enable_uart=1" at the end ( last line)

Code: Select all

disable_overscan=1
hdmi_force_hotplug=1
hdmi_group=1
hdmi_mode=31

arm_freq=1200
dtparam=spi=off

#lcd
ignore_lcd=1
lcd_rotate=2
overscan_left=0
overscan_right=0
overscan_top=0
overscan_bottom=0
framebuffer_width=1024
framebuffer_height=600
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=0xfff007
dpi_timings=1024 0 40 48 88 600 0 13 3 32 0 0 0 60 0 32000000 3


gpio=0=a2
gpio=1=a2
gpio=2=op,dh
gpio=3=ip

#dpi
gpio=4=a2
gpio=5=a2
gpio=6=a2
gpio=7=a2
gpio=8=a2
gpio=9=a2
gpio=10=a2
gpio=11=a2
gpio=12=a2
gpio=13=a2
gpio=14=a2
gpio=15=a2
gpio=16=a2
gpio=17=a2
gpio=18=a2
gpio=19=a2
gpio=20=a2
gpio=21=a2
gpio=22=a2
gpio=23=a2
gpio=24=a2
gpio=25=a2
gpio=26=a2
gpio=27=a2

#sdio for wifi
gpio=34-39=a3

#fix
gpio=45=ip

# wifi
dtoverlay=sdio,sdio_overclock=25,gpios_34_39

#bluetooth overlay
dtoverlay=hibersense-bt-cm3

#i2c0
dtoverlay=i2c0-bcm2708,pins_28_29

#touch screen overlay
dtoverlay=hibersense-touch-gt911

dtparam=uart0_arm=on
dtparam=sdio1_arm=on
dtparam=audio=on

# uart1 user space
#gpio=40=a5
#gpio=41=a5
dtoverlay=uart1,txd1_pin=40,rxd1_pin=41

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

start_x=0
gpu_mem=256
enable_uart=1


PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2656
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 5:12 pm

That doesn't count - it's in the "[pi4]" section.

rlev
Posts: 76
Joined: Sat Dec 15, 2018 2:20 pm

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 5:18 pm

Ooops :o

I will modify the config.txt and test it.

rlev
Posts: 76
Joined: Sat Dec 15, 2018 2:20 pm

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 5:28 pm

PhilE,

After I moved "enable_uart=1" out of [pi4] section

I get

Code: Select all

[email protected]:~ $ raspi-gpio get
BANK0 (GPIO 0 to 27):
GPIO 0: level=0 fsel=6 alt=2 func=PCLK
GPIO 1: level=1 fsel=6 alt=2 func=DE
GPIO 2: level=1 fsel=0 func=INPUT
GPIO 3: level=1 fsel=0 func=INPUT
GPIO 4: level=0 fsel=6 alt=2 func=DPI_D0
GPIO 5: level=1 fsel=6 alt=2 func=DPI_D1
GPIO 6: level=0 fsel=6 alt=2 func=DPI_D2
GPIO 7: level=1 fsel=6 alt=2 func=DPI_D3
GPIO 8: level=0 fsel=6 alt=2 func=DPI_D4
GPIO 9: level=0 fsel=6 alt=2 func=DPI_D5
GPIO 10: level=0 fsel=6 alt=2 func=DPI_D6
GPIO 11: level=0 fsel=6 alt=2 func=DPI_D7
GPIO 12: level=0 fsel=6 alt=2 func=DPI_D8
GPIO 13: level=0 fsel=6 alt=2 func=DPI_D9
GPIO 14: level=0 fsel=6 alt=2 func=DPI_D10
GPIO 15: level=0 fsel=6 alt=2 func=DPI_D11
GPIO 16: level=1 fsel=6 alt=2 func=DPI_D12
GPIO 17: level=0 fsel=6 alt=2 func=DPI_D13
GPIO 18: level=1 fsel=6 alt=2 func=DPI_D14
GPIO 19: level=0 fsel=6 alt=2 func=DPI_D15
GPIO 20: level=0 fsel=6 alt=2 func=DPI_D16
GPIO 21: level=0 fsel=6 alt=2 func=DPI_D17
GPIO 22: level=1 fsel=6 alt=2 func=DPI_D18
GPIO 23: level=0 fsel=6 alt=2 func=DPI_D19
GPIO 24: level=0 fsel=6 alt=2 func=DPI_D20
GPIO 25: level=0 fsel=6 alt=2 func=DPI_D21
GPIO 26: level=0 fsel=6 alt=2 func=DPI_D22
GPIO 27: level=0 fsel=6 alt=2 func=DPI_D23
BANK1 (GPIO 28 to 45):
GPIO 28: level=1 fsel=4 alt=0 func=SDA0
GPIO 29: level=1 fsel=4 alt=0 func=SCL0
GPIO 30: level=0 fsel=7 alt=3 func=CTS0
GPIO 31: level=1 fsel=7 alt=3 func=RTS0
GPIO 32: level=1 fsel=7 alt=3 func=TXD0
GPIO 33: level=1 fsel=7 alt=3 func=RXD0
GPIO 34: level=1 fsel=7 alt=3 func=SD1_CLK
GPIO 35: level=1 fsel=7 alt=3 func=SD1_CMD
GPIO 36: level=1 fsel=7 alt=3 func=SD1_DAT0
GPIO 37: level=0 fsel=7 alt=3 func=SD1_DAT1
GPIO 38: level=1 fsel=7 alt=3 func=SD1_DAT2
GPIO 39: level=1 fsel=7 alt=3 func=SD1_DAT3
GPIO 40: level=1 fsel=2 alt=5 func=TXD1
GPIO 41: level=1 fsel=2 alt=5 func=RXD1
GPIO 42: level=0 fsel=0 func=INPUT
GPIO 43: level=0 fsel=0 func=INPUT
GPIO 44: level=0 fsel=0 func=INPUT
GPIO 45: level=1 fsel=0 func=INPUT
BANK2 (GPIO 46 to 53):
GPIO 46: level=1 fsel=0 func=INPUT
GPIO 47: level=1 fsel=1 func=OUTPUT
GPIO 48: level=0 fsel=4 alt=0 func=SD0_CLK
GPIO 49: level=1 fsel=4 alt=0 func=SD0_CMD
GPIO 50: level=1 fsel=4 alt=0 func=SD0_DAT0
GPIO 51: level=1 fsel=4 alt=0 func=SD0_DAT1
GPIO 52: level=1 fsel=4 alt=0 func=SD0_DAT2
GPIO 53: level=1 fsel=4 alt=0 func=SD0_DAT3

Code: Select all

[email protected]:~ $ ls /dev/ttyS*
/dev/ttyS0
Is there anything else I need to do in order to use UART1 aka ttyS0 at the user space level?

Thanks for your help.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2656
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 5:34 pm

Set the baud rate? "sudo stty -F /dev/ttyS0 115200", etc.

rlev
Posts: 76
Joined: Sat Dec 15, 2018 2:20 pm

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 5:44 pm

PhilE,

Thank you for your help.
Much appreciated it :)

rlev
Posts: 76
Joined: Sat Dec 15, 2018 2:20 pm

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 8:18 pm

Is Uart1 (ttyS0) used by the CM3 console ?

I want to use this uart1 interface from Python as an regular serial interface.

Thanks

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2656
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 8:21 pm

Check your cmdline.txt for console=ttyS0 or console=serial0.

rlev
Posts: 76
Joined: Sat Dec 15, 2018 2:20 pm

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 8:23 pm

I got

Code: Select all

[email protected]:/boot $ sudo cat cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=ea7d04d6-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2656
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 8:33 pm

So take a guess!

rlev
Posts: 76
Joined: Sat Dec 15, 2018 2:20 pm

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 8:35 pm

Change to :

Code: Select all

console=tty1 root=PARTUUID=ea7d04d6-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

rlev
Posts: 76
Joined: Sat Dec 15, 2018 2:20 pm

Re: [SOLVED] CM3 Plus and WiFi/BT CYW43455

Thu Mar 26, 2020 8:42 pm

Now works!

Thank you PhilE.

You saved the Day again.

Return to “Compute Module”