Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ble support b u585i #67529

Merged

Conversation

javad123javad
Copy link

This patch introduces the Bluetooth Low Energy (BLE) feature to the board.
The board utilizes the STM32WB5MMG as the BLE module. However, As there
was no BLE controller available for this module. Therefore, a board
support package has been added to enable the STM32WB5MMG module to act as
a BLE controller. This is achieved by running Zephyr's hci_uart example on
the STM32WB5MMG module which enables communication with the main
microcontroller over the H:4 HCI transport protocol. So, users must first
build the BLE controller for the BLE module and upload it via on board
ST-Link,then they can uses Zephyr Bluetooth demos on the development board
Note that there was no hardware flow control wiring available on the
board, which is why it has been disabled in the both main board and BLE
module Device Tree. As the board doesn't support HW flow control, users
must must set CONFIG_BT_HCI_ACL_FLOW_CONTROL=n in project files.

boards/arm/b_u585i_iot02a/doc/index.rst Outdated Show resolved Hide resolved
boards/arm/stm32wb5mmg/Kconfig.board Outdated Show resolved Hide resolved
boards/arm/stm32wb5mmg/Kconfig.defconfig Outdated Show resolved Hide resolved
boards/arm/stm32wb5mmg/stm32wb5mmg.dts Outdated Show resolved Hide resolved
@javad123javad javad123javad force-pushed the add_ble_support_b_u585i branch from aa1f7d4 to 7637f0a Compare January 15, 2024 07:06
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes required mainly around doc and device tree.
Otherwise, it would be required to split in 2 commits:

  • new board introduction
  • b_u585i_iot update

Thanks !

boards/arm/stm32wb5mmg/doc/stm32wb5mmg.rst Outdated Show resolved Hide resolved
boards/arm/stm32wb5mmg/doc/stm32wb5mmg.rst Outdated Show resolved Hide resolved
boards/arm/stm32wb5mmg/doc/stm32wb5mmg.rst Outdated Show resolved Hide resolved
boards/arm/stm32wb5mmg/stm32wb5mmg.dts Outdated Show resolved Hide resolved
boards/arm/stm32wb5mmg/doc/stm32wb5mmg.rst Show resolved Hide resolved
@javad123javad javad123javad force-pushed the add_ble_support_b_u585i branch from 7637f0a to 70250d1 Compare January 15, 2024 08:24
boards/arm/b_u585i_iot02a/b_u585i_iot02a.dts Outdated Show resolved Hide resolved
boards/arm/b_u585i_iot02a/b_u585i_iot02a.dts Outdated Show resolved Hide resolved
@javad123javad javad123javad force-pushed the add_ble_support_b_u585i branch 3 times, most recently from 739ed25 to b607082 Compare January 15, 2024 14:07
@javad123javad javad123javad force-pushed the add_ble_support_b_u585i branch 4 times, most recently from e5fb830 to 05d12f4 Compare January 17, 2024 06:45
@javad123javad javad123javad requested a review from erwango January 18, 2024 09:29
boards/arm/stm32wb5mmg/stm32wb5mmg.dts Outdated Show resolved Hide resolved
boards/arm/stm32wb5mmg/doc/stm32wb5mmg.rst Show resolved Hide resolved
boards/arm/stm32wb5mmg/stm32wb5mmg.dts Show resolved Hide resolved
@javad123javad javad123javad force-pushed the add_ble_support_b_u585i branch 2 times, most recently from c32cf79 to 0c3f657 Compare January 22, 2024 09:05
This patch introduces the Bluetooth Low Energy (BLE) feature to the board.
The board utilizes the STM32WB5MMG as the BLE module. However, As there
was no BLE controller available for this module. Therefore, a board
support package has been added to enable the STM32WB5MMG module to act as
a BLE controller. This is achieved by running Zephyr's hci_uart example on
the STM32WB5MMG module which enables communication with the main
microcontroller over the H:4 HCI transport protocol. So, users must first
build the BLE controller for the BLE module and upload it via on board
ST-Link,then they can uses Zephyr Bluetooth demos on the development board
Note that there was no hardware flow control wiring available on the
board, which is why it has been disabled in the both main board and BLE
module Device Tree.

Signed-off-by: Javad Rahimipetroudi <[email protected]>
@javad123javad javad123javad force-pushed the add_ble_support_b_u585i branch from 5b7280a to 20fecb6 Compare January 22, 2024 13:03
erwango
erwango previously approved these changes Jan 22, 2024
@erwango
Copy link
Member

erwango commented Jan 24, 2024

@javad123javad Please fix compliance issue

@javad123javad
Copy link
Author

@javad123javad Please fix compliance issue

Sure, As it is approved, what is the proper way to do it? should I rebase to my commit or to the base commit?
You explained it here, but I didn't understand it correctly.

@erwango
Copy link
Member

erwango commented Jan 24, 2024

Sure, As it is approved, what is the proper way to do it? should I rebase to my commit or to the base commit?

Yep: fix and force-push. Avoid rebase if not required. You'll lost approval, but we should be able to identify change easily and re-approve quickly.

This commits makes it possible to use the onboard bluetooth
module (STM32WB5MMG) with existing zephyr bluetooth samples.
Note that there was no hardware flow control wiring
available on the board, which is why it has been disabled
in the both main board and BLE module Device Tree. As the
board doesn't support HW flow control, users must set
CONFIG_BT_HCI_ACL_FLOW_CONTROL=n in project files.

Signed-off-by: Javad Rahimipetroudi <[email protected]>
@erwango
Copy link
Member

erwango commented Jan 24, 2024

Sure, As it is approved, what is the proper way to do it? should I rebase to my commit or to the base commit?

Yep: fix and force-push. Avoid rebase if not required. You'll lost approval, but we should be able to identify change easily and re-approve quickly.

For instance, here what github proposed me to check: https://github.com/zephyrproject-rtos/zephyr/compare/20fecb6bd83305e2c1fbc614cfb333a9f0301944..9be46cfd25e1d23da7b5cd7402a65367d28277e1. Quickly reviewed!

@erwango erwango requested a review from arnout January 25, 2024 16:03
@javad123javad javad123javad requested a review from erwango January 26, 2024 12:57
@fabiobaltieri fabiobaltieri merged commit ce4cdd8 into zephyrproject-rtos:main Jan 26, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants