HI DevZone,
I am trying to add the coded phy features in Peripheral_Uart and Central_Uart examples of NCS. I hope Coded phy features are successfully added into Peripheral_Uart because i am seeing the Coded Phy LE packet on Wireshark.And got the following output as well on Uart.
Fullscreen
1
2
3
4
5
6
7
8
9
*** Booting Zephyr OS build v3.0.99-ncs1-1· ***<CR><LF>
Starting Nordic UART service example<CR><LF>
Bluetooth initialized<CR><LF>
Created adv: 0x20001f58<CR><LF>
Advertiser 0x20001f58 set started<CR><LF>
Now issue I am facing an issue with the Central_Uart . When I debug the issue I got the following output.
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
00:00:06.[00:00:06.411,468] \033[0m<inf> fs_nvs: alloc wra: 0, ed0\033[0m
[00:00:06.411,499] \033[0m<inf> fs_nvs: data wra: 0, 1d8\033[0m
[00:00:06.411,682] \033[0m<inf> sdc_hci_driver: SoftDevice Controller build revision:
33 78 2a 18 20 f5 61 61 a6 8b 77 60 62 83 39 2a |3x*. .aa ..w`b.9*
7c f1 14 e4 ||... \033[0m
[00:00:06.416,717] \033[0m<inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)\033[0m
[00:00:06.416,748] \033[0m<inf> bt_hci_core: HW Variant: nRF52x (0x0002)\033[0m
[00:00:06.416,778] \033[0m<inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 51.10872 Build 1643454488\033[0m
[00:00:06.417,572] \033[0m<inf> bt_hci_core: No ID address. App must call settings_load()\033[0m
[00:00:18.831,848] \033[0m<inf> central_uart: Bluetooth initialized\033[0m
[00:00:18.833,435] \033[0m<inf> bt_hci_core: Identity: E8:2B:FD:17:14:C2 (random)\033[0m
[00:00:18.833,435] \033[0m<inf> bt_hci_core: HCI: version 5.3 (0x0c) revision 0x1136, manufacturer 0x0059\033[0m
[00:00:18.833,465] \033[0m<inf> bt_hci_core: LMP: version 5.3 (0x0c) subver 0x1136\033[0m
[00:00:21.678,649] \033[0m<inf> central_uart: NUS Client module initialized\033[0m
[00:00:26.868,499] \033[1;31m<err> mpsl_init: MPSL ASSERT: 112, 2114\033[0m
[00:00:39.748,535] \033[1;31m<err> os: ***** HARD FAULT *****\033[0m
[00:00:39.748,535] \033[1;31m<err> os: Fault escalation (see below)\033[0m
[00:00:39.748,565] \033[1;31m<err> os: ARCH_EXCEPT with reason 3
\033[0m
[00:00:39.748,565] \033[1;31m<err> os: r0/a1: 0x00000003 r1/a2: 0x0000000d r2/a3: 0x0000000c\033[0m
[00:00:39.748,596] \033[1;31m<err> os: r3/a4: 0x20001c88 r12/ip: 0x00000000 r14/lr: 0x0001b3a1\033[0m
I am also inserting my main.c code.
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/
/** @file
* @brief Nordic UART Service Client sample
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/printk.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/hci.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/uuid.h>
I also added
CONFIG_BT_CTLR_PHY_CODED=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_USER_PHY_UPDATE=y
CONFIG_BT_MAX_CONN=1
in prj.conf file .
I followed the following link.
devzone.nordicsemi.com/.../326776
But still i am unable to connect the two devices on CODED Phy
Can you please help me with where is the issue?
Thanks & Regards,
Muhammad Usman