<?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>Bsim for central_hr example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119912/bsim-for-central_hr-example</link><description>Hey guys, for testing purposes on nrf52833 and SDK 2.8.0 I want to use a simulation and stumbled upon bsim . I followed the instructions there and can build and run the hello world for the hardware and for the simulation. But the step with the central_hr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Mar 2025 09:34:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119912/bsim-for-central_hr-example" /><item><title>RE: Bsim for central_hr example</title><link>https://devzone.nordicsemi.com/thread/527976?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 09:34:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccad1e9c-658e-4152-ac86-9714862fb2b0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not been able to test today, but I see the UARTE peripheral should be emulated by the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/zephyr/boards/native/nrf_bsim/doc/nrf52_bsim.html#nrf52-bsim"&gt;nrf52_bsim&lt;/a&gt;&amp;nbsp;board, so I would expect it should be possible to get it to work with the proiper configuration. I suggest you refer to the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/fc2f0301cd28a1bceed299a88d4a82bfb69d8ff2/boards/native/nrf_bsim"&gt;nrf52_bsim board files&lt;/a&gt; for reference. I should add though that this is added by the Zephyr community and not&amp;nbsp;supported by Nordic (that may change, though).&lt;/p&gt;
&lt;p&gt;Also, please note that bsim has its clear uses for instance in reproducing bugs that can take a long time to reproduce, etc as you can simulate much faster than in real life. But the models are far from perfect, so you riskm issing real issues, and also getting false positives. So it is not a test tool I would recommend for most projects. (There is also a limitation in that currently you have to use Zephyr LL and not the&amp;nbsp;SoftDegvice Controller which is what you should use in the real procuct, adding even more to the difference between the simulated device and the real product.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bsim for central_hr example</title><link>https://devzone.nordicsemi.com/thread/527945?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 07:16:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3606bb6-0097-40df-99c6-fbd3bc70f0bb</guid><dc:creator>Artnia</dc:creator><description>&lt;p&gt;Hi, thank you, it looks good:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;~/nordic/central_hr$ d_00: @00:00:00.000000  *** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
d_00: @00:00:00.000000  *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
d_00: @00:00:00.000000  [00:00:00.000,000] &amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
d_00: @00:00:00.000000  [00:00:00.000,000] &amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF52x (0x0002)
d_00: @00:00:00.000000  [00:00:00.000,000] &amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 3.7 Build 99
d_00: @00:00:00.000000  [00:00:00.000,000] &amp;lt;wrn&amp;gt; bt_id: No static addresses stored in controller
d_00: @00:00:00.002648  [00:00:00.002,624] &amp;lt;inf&amp;gt; bt_hci_core: Identity: FD:9E:B2:48:47:39 (random)
d_00: @00:00:00.002648  [00:00:00.002,624] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.4 (0x0d) revision 0x0000, manufacturer 0x0059
d_00: @00:00:00.002648  [00:00:00.002,624] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.4 (0x0d) subver 0xffff
d_00: @00:00:00.002648  Bluetooth initialized
d_00: @00:00:00.003368  Scanning successfully started&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now I would like to do the same for my actual application instead of central_hr. My app is based on the NUS example and uses UART. I run into following error:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;d_00: @00:00:00.000000  *** Booting My Application v2.7.0-7937ab1b0b19 ***
d_00: @00:00:00.000000  *** Using nRF Connect SDK v2.8.0-a2386bfc8401 ***
d_00: @00:00:00.000000  *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
d_00: @00:00:00.000000  [00:00:00.000,000] &amp;lt;err&amp;gt; UART_DRIVER: Cannot initialize UART callback
d_00: @00:00:00.000000  [00:00:00.000,000] &amp;lt;err&amp;gt; BLE: Uart init failed (err -88)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which comes from here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    /* Register UART Callback */
    err = uart_callback_set(uart, uart_cb, NULL);
    if (err) {
        k_free(rx);
        LOG_ERR(&amp;quot;Cannot initialize UART callback&amp;quot;);
        return err;
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;while -88 is &lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define ENOSYS 88		/* Function not implemented */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and zephyr.dts:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8508.zephyr.dts"&gt;devzone.nordicsemi.com/.../8508.zephyr.dts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Probably also something with the device tree. Do you have an idea?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bsim for central_hr example</title><link>https://devzone.nordicsemi.com/thread/527834?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 12:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5cd27a7-07c1-4c3b-b91a-f6e2e7541444</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The way to change Bluetooth controller implementation has changed, and that is now done in the devicetree instaed of using Kconfig. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/118596/encounter-device-tree-build-error-when-building-zephyr-ble-peripheral-example-with-zephyr-ll-software-stack-ncs-2-7-0---ncs-2-9-0/521279"&gt;this post&lt;/a&gt; for details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>