cancel
Showing results for 
Search instead for 
Did you mean: 

Using the Ble Module of the SensorTile.box on the Zephyr RTOS

GTort.1
Associate II

Hello, has anyone been able to use the Ble Module (SPBTLE-1S) of the STEVAL-MKSBOX1V1 (SensorTile.box) on the Zephyr RTOS?

We are struggling trying to configure the DTS and CONF files to be able to run a simple Zephyr BLE example:

https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/bluetooth/st_ble_sensor

Below we provide our tentative (not working) DTS and PROJ.

Thanks in advance for any help.

prj.conf:

CONFIG_BT_SPI=y

CONFIG_BT_HCI=y

CONFIG_BT=y

CONFIG_BT_DEBUG_LOG=y

CONFIG_BT_PERIPHERAL=y

CONFIG_BT_DEVICE_NAME="SPBTLE-1S"

CONFIG_BT_GATT_CLIENT=y

app.overlay:

/ {

  chosen {

      zephyr,bt-hci-spi = &zephyr_bt_hci_spi;

      zephyr,bt-hci-spi-slave = &zephyr_bt_hci_spi_slave;

  };

};

&spi2 {

  pinctrl-0 = <&spi2_nss_pd0 &spi2_sck_pd1 &spi2_miso_pd3 &spi2_mosi_pc3>;

  pinctrl-names = "default";

  status = "okay";

  cs-gpios = <&gpiod 0 GPIO_ACTIVE_LOW>;

  zephyr_bt_hci_spi: zephyr_bt_hci_spi@0 {

    compatible = "zephyr,bt-hci-spi";

    reg = <0>;

    irq-gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;

    reset-gpios = <&gpioa 8 GPIO_ACTIVE_LOW>;

    spi-max-frequency = <1000000>;

    label = "SPBTLE-1S";

  };

  zephyr_bt_hci_spi_slave: zephyr_bt_hci_spi_slave@1 {

    compatible = "zephyr,bt-hci-spi-slave";

    reg = <1>;

    irq-gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;

  };

};

1 REPLY 1
RArte.1
Associate II

Have you fix the issue?