Skip to main content
Clark Sann
Associate III
August 30, 2019
Solved

Are there any bluetooth examples for STM32MP157C-DK2 board?

  • August 30, 2019
  • 8 replies
  • 3078 views

Can anyone point me to an example on how to use bluetooth for this discovery board?

Will it be possible to pair to two bluetooth sensors at the same time?

This topic has been closed for replies.
Best answer by PatrickF

As in wiki, demo application is written in python3 and uses GTK to display the user interface.

You could find the associated files in the rootfs of the DK2 board, under /usr/local/demo you will find the demo_launcher.py entry point.

8 replies

PatrickF
ST Employee
August 30, 2019

Hello,

please read https://wiki.st.com/stm32mpu/wiki/Bluetooth_overview

You can exercise the DK2 Bluetooth with an external speaker using the provided demo https://wiki.st.com/stm32mpu/wiki/GTK_demo_launcher

About pairing multiple bluetooth, I assume it should be ok, but linked to BT Hw used on the board and Linux support.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
Clark Sann
Associate III
August 30, 2019

Is the demo source code available?

PatrickF
PatrickFBest answer
ST Employee
August 30, 2019

As in wiki, demo application is written in python3 and uses GTK to display the user interface.

You could find the associated files in the rootfs of the DK2 board, under /usr/local/demo you will find the demo_launcher.py entry point.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
Clark Sann
Associate III
August 30, 2019

Thank your for your quick reply. That's outstanding service!

I would like to access bluetooth from the ARM4 processor using C. Any examples of this?

PatrickF
ST Employee
August 30, 2019

There is no example of such use case.

I'm not sure it is what you are asking for, but you could probably use OpenAMP to transfer BT data/control from M4 to Linux which keep the control of the WLAN/BT device.

The WLAN/BT combo is connected on SDMMC2 (WLAN data and general combo load/init) + USART2 (BT data/control) + I2S1 (BT Audio) on DK2 board, and could likely be fully controlled by M4, but we do not have any MCU example/driver for that 3rd party module (LBEE5KL1DX Murata with Cypress chipset).

Please check Murata to see what they offer for STM32 (an STM32 MCU solution could be ported on the M4 of STM32MP1 with low effort).

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent