<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91274/hard-fault-zephyr-during-scan-with-shell-ble-command</link><description>HI, 
 I have an error that occured during scan with shell command : 
 [00:02:04.392,181] &amp;lt;err&amp;gt; sdc_hci_driver: SoftDevice Controller ASSERT: 50, 5399 [00:02:04.392,211] &amp;lt;err&amp;gt; os: ***** HARD FAULT ***** [00:02:04.392,211] &amp;lt;err&amp;gt; os: Fault escalation (see</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Aug 2022 10:31:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91274/hard-fault-zephyr-during-scan-with-shell-ble-command" /><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383862?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 10:31:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:988b4117-6f98-4190-9cea-ddcdaa3bc8c9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Pierre-Yves,&amp;nbsp;&lt;br /&gt;Yes they are basically the same.&amp;nbsp;&lt;br /&gt;However, when you do BLE you would need to request the tx_power/output_power change to the BLE controller, you can&amp;#39;t access the radio directly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please follow the code on how to change tx_power using HCI command in the case I pointed to.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383780?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 06:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1928041d-707d-4547-af28-be1457696131</guid><dc:creator>Piwy</dc:creator><description>&lt;p&gt;Thanks you for your reply.&lt;/p&gt;
&lt;p&gt;But the radio_test sample can change output_power, is it the same as tx_power ?&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Pierre-Yves&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383629?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 09:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9a3da87-ab81-44a8-88b3-eedd92148110</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Pierre,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For those command that&amp;#39;s not available with bt shell, I would suggest to add your &lt;a href="https://docs.zephyrproject.org/3.1.0/services/shell/index.html#creating-commands"&gt;own shell commands&lt;/a&gt;&amp;nbsp;which trigger your own function in the code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The code to change TX Power, you can find &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77753/changing-tx-power-and-phy-in-ncs-example-at-runtime"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383580?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 06:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16905e9c-7308-47b2-96df-f60f8794a636</guid><dc:creator>Piwy</dc:creator><description>[quote userid="116326" url="~/f/nordic-q-a/91274/hard-fault-zephyr-during-scan-with-shell-ble-command"]another [/quote]
&lt;p&gt;I want to do with NCS, a pc-ble-driver like software with shell command, that&amp;#39;s why i want to be able to configure the radio directely, but the radio command like output power or data rate seems to works without the&amp;nbsp;&lt;span&gt;radio_cmd_init().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maybe there is a conflict between the&amp;nbsp;radio_cmd_init() and the configuration use for the scan.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Futhermore i want to have the possibility to add cmd() like update the peripheral software with DFU.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383494?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 13:12:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68215e96-84f3-4ce7-9d15-df82d663c8f0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Pierre,&amp;nbsp;&lt;br /&gt;Sorry that I didn&amp;#39;t see your second reply.&lt;/p&gt;
&lt;p&gt;The line&amp;nbsp;&lt;br /&gt;SYS_INIT(radio_test_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);&lt;/p&gt;
&lt;p&gt;Will execute the&amp;nbsp;&lt;span&gt;radio_cmd_init() when the device booting up, right after the kernel is finished booting.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t think it&amp;#39;s a good idea to combine the radio test with the bluetooth shell.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Could you let me know what exactly you want to achieve here ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383486?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 12:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fd2173a-911d-453a-8502-05623d03aeed</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Pierre-Yves,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m taking over the case from Jared as he is on vacation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. I&amp;#39;m not sure I&amp;#39;m entirely understand what you say. But could you confirm that after you disable MPSL you still see the same&amp;nbsp;&lt;span&gt;HARD FAULT&amp;nbsp;error ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. 4.&amp;nbsp;So my understanding&amp;nbsp;is that only after you integrate the radio test example into the example you see the issue. We would need to look at what you do to integrate the 2 example together. I don&amp;#39;t think they are built to be used together as both will try to access the radio.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. Yes, by updating zephy using&amp;nbsp;&lt;em&gt; west update.&lt;/em&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383477?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 12:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4743b439-7bc7-4400-a080-efe4c3782f45</guid><dc:creator>Piwy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I find the issue it was this :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static int radio_cmd_init(const struct device *dev)
{
	ARG_UNUSED(dev);

	return radio_test_init(&amp;amp;test_config);
}

SYS_INIT(radio_cmd_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But can you explain why tyhis create an assert ? the systeme work without it....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383468?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 12:26:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c35033b-3289-4845-9bd6-f28efdb325a4</guid><dc:creator>Piwy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. Yes i try options, but disable it change anything to the issue, i disable it and will see in the furture&lt;/p&gt;
&lt;p&gt;2. I use a custom board, but it&amp;#39;s the same as nRF52840 DK, i use uart to communicate with serial port and not usb, in the futur i will need to use USB for the communication instead of UART. I saw that it&amp;#39;s possible but it&amp;#39;s not the issue here.&lt;/p&gt;
&lt;p&gt;3. Yes i use the shell sample&amp;nbsp;from ncs/zephyr/tests/bluetooth/shell and i mix it with radio_test sample from nordic.&lt;/p&gt;
&lt;p&gt;4. I just use bt scan on, the same command as you..., but the issue occurs not directly, it occured 5-10 second after command and later if i do a coded scan ( there is less device in coded), I thought the fact that the assert came later in coded is related to the number of device detected in the scan.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But now ii tried just ncs/zephyr/tests/bluetooth/shell and it&amp;#39;s working, i don&amp;#39;t understand why the part of radio test creat this assert.... ?&lt;/p&gt;
&lt;p&gt;I have exactly the same init as you (exept the identity but it&amp;#39;s normal)&lt;/p&gt;
&lt;p&gt;5. What do you call master branch, update of zephyr ?&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;py&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383441?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 10:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a6201fd-99be-434d-aeac-ef6407009bf3</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I discussed this with our developers and here is the feedback:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Did you enable LLPM intentionally? Do you use it in your application? Not sure if this will work with shell.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Which board are you using? nRF52840 DK, Dongle or custom board?&lt;/li&gt;
&lt;li&gt;Exactly which sample are you using? Are you using the shell sample&amp;nbsp;from ncs/zephyr/tests/bluetooth/shell?&lt;/li&gt;
&lt;li&gt;We tried to reproduce your issue by using shell sample and your kconfig and it didn&amp;#39;t assert. Can you specify what shell commands that you have used, so to that we can use the same when we try to reproduce your issue? (see below for example)&lt;pre class="ui-code" data-mode="text"&gt;ncs-int: nrf] west update
=== updating zephyr (zephyr):
M   tests/bluetooth/shell/prj.conf
HEAD is now at 0a904d0c17 [nrf fromlist] tfm: Add option for implementation custom reset handler with TF-M
=== updating mcuboot (bootloader/mcuboot):
HEAD is now at 129b6312 [nrf noup] bootutil: loader: Add check for netcore addr if NSIB enabled
=== updating mbedtls-nrf (mbedtls):
HEAD is now at b36261c55 [nrf noup]: Fix unset key bits for nrf_cc3xx v0.9.14
=== updating nrfxlib (nrfxlib):
HEAD is now at 1296d445 doc: version update for NCS 2.0.0&lt;/pre&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ west build -b nrf52840dk_nrf52840
$ west flash
$ sudo minicom -D /dev/ttyACM9
uart:~$ bt init 
Bluetooth initialized
Settings Loaded
[00:00:11.907,928] &amp;lt;inf&amp;gt; fs_nvs: 8 Sectors of 4096 bytes
[00:00:11.907,958] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fa0
[00:00:11.907,989] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 64
[00:00:11.908,630] &amp;lt;inf&amp;gt; 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                                      ||...             
[00:00:11.913,635] &amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
[00:00:11.913,665] &amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF52x (0x0002)
[00:00:11.913,665] &amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 51.10872 Build 1643454488
[00:00:11.914,367] &amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()
[00:00:11.944,610] &amp;lt;inf&amp;gt; bt_hci_core: Identity: D3:E8:54:AA:01:B0 (random)
[00:00:11.944,641] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.3 (0x0c) revision 0x1136, manufacturer 0x0059
[00:00:11.944,641] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.3 (0x0c) subver 0x1136
uart:~$ bt scan on
Bluetooth active scan enabled
[DEVICE]: 5D:9F:44:D9:1B:B2 (random), AD evt type 0, RSSI -51  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 0xff
[DEVICE]: 5D:9F:44:D9:1B:B2 (random), AD evt type 4, RSSI -49  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 0xff
[DEVICE]: C1:1B:F3:1F:67:3D (random), AD evt type 0, RSSI -75  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 0xff
[DEVICE]: C1:1B:F3:1F:67:3D (random), AD evt type 4, RSSI -74  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 0xff
[DEVICE]: 38:E9:18:57:FA:9F (random), AD evt type 3, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 0xff
[DEVICE]: C1:1B:F3:1F:67:3D (random), AD evt type 0, RSSI -71  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 0xff
...
...&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;There was a fix for a similar bug that has been added to the Master branch. Can you try to reproduce your issue using the Master branch?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383270?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 11:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2094cc8f-934e-4751-b76d-01749b23ed6a</guid><dc:creator>Piwy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I use NCS version 2.0.0.&lt;/p&gt;
&lt;p&gt;Here there is my Config.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CONSOLE_HANDLER=y
CONFIG_SHELL=y
CONFIG_FLASH_SHELL=y

CONFIG_DYNAMIC_INTERRUPTS=y

CONFIG_NRFX_TIMER0=y

# Enable the BT NUS shell
CONFIG_SHELL_BT_NUS=y

CONFIG_SHELL_BACKEND_SERIAL=y
#CONFIG_HAS_HW_NRF_RADIO_IEEE802154=y

CONFIG_BT_MAX_CONN=5
CONFIG_MPSL=y
#CONFIG_TEST=y
#CONFIG_TEST_LOGGING_DEFAULTS=n
CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_CENTRAL=y
#CONFIG_BT_PERIPHERAL=y
CONFIG_BT_PRIVACY=y 
CONFIG_BT_SMP=y
CONFIG_BT_SIGNING=y
#CONFIG_BT_FIXED_PASSKEY=y
#CONFIG_BT_ATT_PREPARE_COUNT=32

CONFIG_BT_GATT_DM=y
CONFIG_BT_GATT_CLIENT=y

CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y

#CONFIG_BT_TINYCRYPT_ECC=y

CONFIG_BT_SHELL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;test shell&amp;quot;
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_L2CAP_TX_BUF_COUNT=10
CONFIG_BT_CTLR_EXT_SCAN_FP=y

CONFIG_BT_EATT=y
CONFIG_BT_L2CAP_ECRED=y

CONFIG_BT_GATT_DYNAMIC_DB=y
#CONFIG_BT_HRS=y
CONFIG_BT_FILTER_ACCEPT_LIST=y
CONFIG_BT_REMOTE_INFO=y
CONFIG_BT_REMOTE_VERSION=y
CONFIG_BT_GATT_AUTO_DISCOVER_CCC=y

CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y
CONFIG_BT_CTLR_PHY_CODED=y
CONFIG_BT_CTLR_SYNC_PERIODIC=y

CONFIG_BT_SCAN=y
CONFIG_BT_SCAN_FILTER_ENABLE=y
CONFIG_BT_SCAN_UUID_CNT=1



CONFIG_BT_EXT_ADV=y
CONFIG_BT_EXT_ADV_LEGACY_SUPPORT=y
CONFIG_BT_PER_ADV=y
CONFIG_BT_PER_ADV_SYNC=y

CONFIG_BT_USER_DATA_LEN_UPDATE=y
CONFIG_BT_AUTO_DATA_LEN_UPDATE=y

CONFIG_BT_USER_PHY_UPDATE=y
#CONFIG_BT_AUTO_PHY_UPDATE=y

#CONFIG_BT_ISO_BROADCASTER=y
#CONFIG_BT_ISO_SYNC_RECEIVER=y
#CONFIG_BT_ISO_UNICAST=y


#CONFIG_MAIN_STACK_SIZE=4096


CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_LL_SW_SPLIT=y
CONFIG_BT_BROADCASTER=y
CONFIG_BT_OBSERVER=y
#CONFIG_DESKTOP_BLE_QOS_ENABLE=y
CONFIG_BT_LL_SOFTDEVICE=y
#CONFIG_QOS=y
#CONFIG_ZERO_LATENCY_IRQS=y
CONFIG_BT_CTLR_SDC_LLPM=y
CONFIG_BT_CTLR_SDC_SCAN_BUFFER_COUNT= 20
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The only things that don&amp;#39;t work is the scan.&lt;/p&gt;
&lt;p&gt;I tried to increase the stacks but it don&amp;#39;t change anything.&lt;/p&gt;
&lt;p&gt;Reagrds&lt;/p&gt;
&lt;p&gt;py&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard Fault Zephyr during scan with shell BLE command</title><link>https://devzone.nordicsemi.com/thread/383261?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 11:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd293e11-3af9-4547-9232-8f539421ac2f</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Which NCS version are you using, master branch?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The assert indicates that something is not correct with your configs, can you share your project config file?&lt;/p&gt;
[quote user=""]And i have another question on another topic, it&amp;#39;s about the name of a peripheral device, the name appear when the peripheral is in 1M PHY but he don&amp;#39;t apprear when the device is in Coded PHY, do you know why ?[/quote]
&lt;p&gt;Can you make a new ticket for this problem?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>