Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

Commit 06e06ba

Browse files
committed
update to nRF connect SDK v3.0.0
1 parent 738bec2 commit 06e06ba

6 files changed

Lines changed: 23 additions & 107 deletions

File tree

ble-keyboard/Kconfig

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
rsource "../Kconfig"
22

3-
configdefault BT_DIS_MANUF
3+
configdefault BT_DIS_MANUF_NAME
4+
default y
5+
6+
configdefault BT_DIS_MANUF_NAME_STR
47
default DEMO_MANUFACTURER
58

6-
configdefault BT_DIS_MODEL
9+
configdefault BT_DIS_MODEL_NUMBER
10+
default y
11+
12+
configdefault BT_DIS_MODEL_NUMBER_STR
713
default DEMO_PRODUCT
814

915
configdefault BT_DIS_PNP

ble-keyboard/src/main.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <zephyr/settings/settings.h>
1010
#include <zephyr/shell/shell.h>
1111

12+
#include "simple_keyboard.hpp"
1213
#include <port/zephyr/bluetooth/hid.hpp>
1314
#include <port/zephyr/bluetooth/le.hpp>
1415
#include <port/zephyr/message_queue.hpp>
@@ -17,8 +18,6 @@
1718

1819
LOG_MODULE_REGISTER(main, LOG_LEVEL_INF);
1920

20-
#include "simple_keyboard.hpp"
21-
2221
static const uint8_t adv_led = 1;
2322

2423
static int advertise(void)
@@ -32,9 +31,8 @@ static int advertise(void)
3231
static constexpr auto ad = to_adv_data<ad_struct_count(ad_data)>(ad_data);
3332
static constexpr auto sd_data = join(ad_struct(BT_DATA_NAME_COMPLETE, CONFIG_BT_DEVICE_NAME));
3433
static constexpr auto sd = to_adv_data<ad_struct_count(sd_data)>(sd_data);
35-
const bt_le_adv_param* adv_param =
36-
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE | BT_LE_ADV_OPT_ONE_TIME,
37-
BT_GAP_ADV_FAST_INT_MIN_2, BT_GAP_ADV_FAST_INT_MAX_2, NULL);
34+
const bt_le_adv_param* adv_param = BT_LE_ADV_PARAM(
35+
BT_LE_ADV_OPT_CONN, BT_GAP_ADV_FAST_INT_MIN_2, BT_GAP_ADV_FAST_INT_MAX_2, nullptr);
3836

3937
auto err = bt_le_adv_start(adv_param, ad.data(), ad.size(), sd.data(), sd.size());
4038
if (err == 0)
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
From 2275a93c3cef6a920b36797488bf74ade0147ad9 Mon Sep 17 00:00:00 2001
1+
From 94ce17290aab6e4b17fa5d3fce19413d19d93e48 Mon Sep 17 00:00:00 2001
22
From: Benedek Kupper <kupper.benedek@gmail.com>
3-
Date: Wed, 16 Apr 2025 09:34:37 +0200
3+
Date: Fri, 1 Aug 2025 23:32:59 +0200
44
Subject: [PATCH] drivers: udc: avoid infinite loop when closing OUT EPs
55

66
---
77
drivers/usb/udc/udc_common.c | 4 ++++
88
1 file changed, 4 insertions(+)
99

1010
diff --git a/drivers/usb/udc/udc_common.c b/drivers/usb/udc/udc_common.c
11-
index 86f5a7f854..065c705cc3 100644
11+
index 3718290ce4..597baefe4f 100644
1212
--- a/drivers/usb/udc/udc_common.c
1313
+++ b/drivers/usb/udc/udc_common.c
14-
@@ -145,6 +145,10 @@ struct net_buf *udc_buf_get_all(const struct device *dev, const uint8_t ep)
15-
LOG_DBG("ep 0x%02x dequeue %p", ep, buf);
14+
@@ -123,6 +123,10 @@ struct net_buf *udc_buf_get_all(struct udc_ep_config *const ep_cfg)
15+
LOG_DBG("ep 0x%02x dequeue %p", ep_cfg->addr, buf);
1616
for (struct net_buf *n = buf; !k_fifo_is_empty(&ep_cfg->fifo); n = n->frags) {
1717
n->frags = k_fifo_get(&ep_cfg->fifo, K_NO_WAIT);
1818
+ if (n->frags == n) {
19-
+ LOG_WRN("ep 0x%02x dequeue FIFO corrupt: %p", ep, n);
19+
+ LOG_WRN("ep 0x%02x dequeue FIFO corrupt: %p", ep_cfg->addr, n);
2020
+ n->frags = NULL;
2121
+ }
2222
LOG_DBG("|-> %p ", n->frags);
2323
if (n->frags == NULL) {
2424
break;
2525
--
26-
2.44.0
26+
2.43.0
2727

patches/zephyr/0001-drivers-udc-eliminate-C-compiler-warnings.patch

Lines changed: 0 additions & 89 deletions
This file was deleted.

projects.code-workspace

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"name": "Manifest repository"
66
},
77
{
8-
"path": "../c2usb",
9-
"name": "c2usb"
8+
"path": "..",
9+
"name": "workspace"
1010
},
1111
{
1212
"path": "ble-keyboard"

west.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ manifest:
2121
- name: nrf
2222
repo-path: sdk-nrf
2323
remote: nrfconnect
24-
revision: v2.9.0
24+
revision: v3.0.0
2525
clone-depth: 1
2626
import:
2727
# By using name-allowlist we can clone only the modules that are
@@ -31,4 +31,5 @@ manifest:
3131
- cmsis
3232
- hal_nordic
3333
- nrfxlib
34-
- tinycrypt
34+
- mbedtls
35+
- oberon-psa-crypto

0 commit comments

Comments
 (0)