This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62L: AM62L-PROCESSOR-SDK: CC33xx Bluetooth module functionality issue

Part Number: AM62L
Other Parts Discussed in Thread: CC3351MOD,

Hello

We have a bespoke board based on the AM62L and have CC3351MOD connected to the SDIO2 interface for WiFi and UART6 interface for Bluetooth.

image.png

We are using the Ti Linux kernel release 11.02.11 https://github.com/TexasInstruments/ti-linux-kernel/archive/refs/tags/11.02.11.tar.gz

Combined with the cc33xx latest release https://dr-download.ti.com/software-development/driver-or-library/MD-UoRUAALCjn/1.0.2.10/cc33xx_linux_package_1_0_2_10.run

Kernel has been configured to add 

CONFIG_MAC80211_DEBUGFS=y
CONFIG_BT_DEBUGFS=y
CONFIG_BT_TI=n
CONFIG_BT_TI_SDIO=n
CONFIG_BT_TI_UART=m

 

Checking through the kernel source it looks like all the patch changes, as suggested in https://github.com/TexasInstruments-Sandbox/cc33xx-linux-mpu-ports/blob/main/ti-linux-6.12.y/0001-drivers-cc33xx-update-to-1.0.2.10.patch#L271

have been applied already to the ti 11.02.11 kernel.

 

Device tree has been configured to enable wifi:

&sdhci2 {
	bootph-all;
	vmmc-supply = <&wlan_en>;
	pinctrl-names = "default";
	pinctrl-0 = <&main_mmc2_pins_default>;	
	bus-width = <4>;
	non-removable;
	cap-power-off-card;
	keep-power-in-suspend;

	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	wlcore: wlcore@0 {
		compatible = "ti,cc3300";
		reg = <2>;
	};
};

bluetooth uart has also been configured

	aliases {
		serial3 = &main_uart6;
	};

&main_uart6 {
	pinctrl-names = "default";
	pinctrl-0 = <&main_uart6_pins_default>;
	status = "okay";
	bootph-all;
	//uart-has-rtscts;

	bluetooth {
		compatible = "ti,cc33xx-bt";
		cc33xx-supply = <&wlan_en>;
		max-speed = <115200>;
	};
};

Have tried with and without uart flow control.

System will boot and WiFi is operational, can scan and connect to networks.

 

It looks like the bluetooth subsystem is being initialised:

[   96.610484] Bluetooth: Core ver 2.22
[   96.614871] NET: Registered PF_BLUETOOTH protocol family
[   96.621222] Bluetooth: HCI device and connection manager initialized
[   96.628114] Bluetooth: HCI socket layer initialized
[   96.634026] Bluetooth: L2CAP socket layer initialized
[   96.639453] Bluetooth: SCO socket layer initialized
[   96.653274] btti serial0-0: Host wakeup NOT enabled
[   96.658601] btti serial0-0: SM: Got EVENT_PROBE_DONE, moving from STATE_PROBING to STATE_HW_OFF
[   96.658871] btti serial0-0: SM: Got EVENT_REGULATOR_ENABLE, moving from STATE_HW_OFF to STATE_HW_ON

 

I am also performing the suggested steps of bringing the wifi online first before enabling the bluetooth via debugfs:

ifconfig wlan0 up
echo 1 > /sys/kernel/debug/ieee80211/phy0/cc33xx/ble_enable

checking hci devices with hciconfig produces no output/no devices found.

 

Can you please advise of any other places to look at why the blutooth is not initialising?

 

Thank you

Marc

  • Further investigation shows some serial communication from the module to AM62L when setting the ble_enable debug node:

    The pattern 0xFF 0xFF 0x02 0x04 0x2A 0x00 0x00 is sent once and no other activity.

    I have also tried different aliases for the serial port:

    / {
      aliases {
        serial1 = &main_uart6;
      };
    };
        
    / {
      aliases {
        serial3 = &main_uart6;
      };
    };

    None have resulted in a response from the module message by the driver.

  • Issue has been located.

    Device tree error in declaration for the serial port direction.
    Output set to Input now for RX and CTS and we have comms.

    [ 211.270681] btti serial0-0: SM: Got EVENT_HCI_WAKEUP_FRAME_RECEIVED, moving from STATE_HW_ON to STATE_HW_READY
    [ 211.330386] Bluetooth: MGMT ver 1.23
    # hciconfig
    hci0: Type: Primary Bus: UART
    BD Address: AA:BB:CC:DD:EF:00 ACL MTU: 255:10 SCO MTU: 0:0
    UP RUNNING
    RX bytes:276 acl:0 sco:0 events:22 errors:0
    TX bytes:121 acl:0 sco:0 commands:22 errors:0