This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new cf1d2f69b1d boards/nrf53: fix BLE HCI initialization for app core
cf1d2f69b1d is described below
commit cf1d2f69b1d8e146081d81c929002be365541e13
Author: raiden00pl <[email protected]>
AuthorDate: Wed May 13 11:30:32 2026 +0200
boards/nrf53: fix BLE HCI initialization for app core
After simplifications in NuttX init process, app core boots too fast so that
net core doesn't have time to initialize HCI service.
Let's add a short sleep before BLE initialization in app core as a temporary
fix, in the future it should be done better.
Signed-off-by: raiden00pl <[email protected]>
---
boards/arm/nrf53/nrf5340-dk/src/nrf53_bringup.c | 4 ++++
boards/arm/nrf53/thingy53/src/nrf53_bringup.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/boards/arm/nrf53/nrf5340-dk/src/nrf53_bringup.c
b/boards/arm/nrf53/nrf5340-dk/src/nrf53_bringup.c
index 476796dc3b2..95273f302cb 100644
--- a/boards/arm/nrf53/nrf5340-dk/src/nrf53_bringup.c
+++ b/boards/arm/nrf53/nrf5340-dk/src/nrf53_bringup.c
@@ -104,6 +104,10 @@ static int nrf53_appcore_bleinit(void)
}
# ifdef CONFIG_DRIVERS_BLUETOOTH
+ /* Wait a moment to make sure the netcore initializes BLE */
+
+ nxsched_usleep(1000);
+
ret = bt_driver_register(bt_dev);
if (ret < 0)
{
diff --git a/boards/arm/nrf53/thingy53/src/nrf53_bringup.c
b/boards/arm/nrf53/thingy53/src/nrf53_bringup.c
index 51f16b01b56..f10c5c64c5a 100644
--- a/boards/arm/nrf53/thingy53/src/nrf53_bringup.c
+++ b/boards/arm/nrf53/thingy53/src/nrf53_bringup.c
@@ -91,6 +91,10 @@ static int nrf53_appcore_bleinit(void)
}
# ifdef CONFIG_DRIVERS_BLUETOOTH
+ /* Wait a moment to make sure the netcore initializes BLE */
+
+ nxsched_usleep(1000);
+
ret = bt_driver_register(bt_dev);
if (ret < 0)
{