<?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>HOW DO I SET UP BLE WITH NRF XIAO BLE SENSE zephyr?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119707/how-do-i-set-up-ble-with-nrf-xiao-ble-sense-zephyr</link><description>Hi! 
 
 I’m developing an application using nRF SDK 2.9.0 with the Xiao BLE Sense . I created a new project based on Zephyr’s UART peripheral example. 
 The application runs perfectly on the nRF52840 DK . It also builds successfully for the Xiao BLE Sense</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Mar 2025 10:44:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119707/how-do-i-set-up-ble-with-nrf-xiao-ble-sense-zephyr" /><item><title>RE: HOW DO I SET UP BLE WITH NRF XIAO BLE SENSE zephyr?</title><link>https://devzone.nordicsemi.com/thread/527809?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 10:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2358e69c-607c-460c-b34f-443621bc2220</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Good to hear that it is working now.&lt;/p&gt;
[quote user="massimoklk"]&lt;p&gt;My goal is also to have the uart activated in the near future.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I think it should be fine enabling the&amp;nbsp;both physical UART and BLE UART, when you manually assign the correct UART instances..&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW DO I SET UP BLE WITH NRF XIAO BLE SENSE zephyr?</title><link>https://devzone.nordicsemi.com/thread/527322?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 08:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baec4830-72c6-4be1-9d3c-45a2e62e61d7</guid><dc:creator>massimoklk</dc:creator><description>&lt;p&gt;okey, i will try it. However, the same project with the DK works well, meanwhile with the xiao blee seed does not. since the problem is the board, i do not think the problem is the prj.conf right?&lt;br /&gt;&lt;br /&gt;additionally, i have disabled the uart and i have the application working on the xiao seeed board (BLE working).&amp;nbsp;&lt;br /&gt;My goal is also to have the uart activated in the near future.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW DO I SET UP BLE WITH NRF XIAO BLE SENSE zephyr?</title><link>https://devzone.nordicsemi.com/thread/527250?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 16:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e815d428-87c8-4d93-857c-0f20dfb200b3</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you share the &lt;code&gt;prj.conf&lt;/code&gt; file of your application? Try including the configurations below inside &lt;code&gt;prj.conf&lt;/code&gt; and see if this resolves the issue.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;I don&amp;#39;t have this particular board you are using So I have some limitation testing this on my end.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_UART_ASYNC_API=n 
CONFIG_SERIAL=n 
CONFIG_UART_CONSOLE=n 
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Kind Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Abhijith&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW DO I SET UP BLE WITH NRF XIAO BLE SENSE zephyr?</title><link>https://devzone.nordicsemi.com/thread/527104?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 09:15:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59f3e6df-1dfd-44d0-806e-7f7f3d79706b</guid><dc:creator>massimoklk</dc:creator><description>&lt;p&gt;yes! you are right, i meant the BLE logging backend sample.&lt;/p&gt;
&lt;p&gt;The problem i have is that the program fails because the UART&amp;nbsp;cannot be initialised.&lt;/p&gt;
&lt;p&gt;This is the message it returns:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00:00:02.313,049] \033[1;33m&amp;lt;wrn&amp;gt; usb_device: USB device support already enabled\033[0m
[00:00:02.313,110] \033[1;31m&amp;lt;err&amp;gt; peripheral_uart: Cannot initialize UART callback\033[0m
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;specifically, it returns -ENOSYS, when checking if the api-&amp;gt;callback_set is NULL (meaning it is NULL).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static inline int uart_callback_set(const struct device *dev,
            uart_callback_t callback,
            void *user_data)
{
#ifdef CONFIG_UART_ASYNC_API
  const struct uart_driver_api *api =
      (const struct uart_driver_api *)dev-&amp;gt;api;

  if (api-&amp;gt;callback_set == NULL) {
    return -ENOSYS;
  }

  return api-&amp;gt;callback_set(dev, callback, user_data);
#else
  ARG_UNUSED(dev);
  ARG_UNUSED(callback);
  ARG_UNUSED(user_data);
  return -ENOTSUP;
#endif
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;do you know what may be happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW DO I SET UP BLE WITH NRF XIAO BLE SENSE zephyr?</title><link>https://devzone.nordicsemi.com/thread/527091?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 08:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e0fa229-8505-4262-ac5b-150fc5e91444</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="massimoklk"]Do I have to although I am not using the physical lanes?[/quote]
&lt;p&gt;You don&amp;#39;t need to, since you are using UART over BLE. By &amp;quot;LOG BLE sample,&amp;quot; I assume you mean the&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/subsys/logging/ble_backend"&gt; Bluetooth logging backend sample&lt;/a&gt; from Zephyr. If that is the case, then the issue might be with your application. I recommend including the log inside the application, as this will help identify where the application is failing. You can refer to the same sample, as it does the same thing. See &lt;code&gt;LOG_INFO&lt;/code&gt; and &lt;code&gt;LOG_ERR&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW DO I SET UP BLE WITH NRF XIAO BLE SENSE zephyr?</title><link>https://devzone.nordicsemi.com/thread/527025?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 16:35:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0abf1565-153b-43f9-b9a1-e5f9ad96d6e8</guid><dc:creator>massimoklk</dc:creator><description>&lt;p&gt;Hi, i will try it right now, however, i think it is due to the lack of some definitions inside the device tree. I am not by means an expert, and i would like to have a more robust answer that I own have.&amp;nbsp;&lt;br /&gt;additionally, I tested the LOG BLE example and it worked with the XIAO SEEED BLE SENSE.&lt;br /&gt;&lt;br /&gt;here I attache the device tree that it currently has:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/dts-v1/;
#include &amp;quot;xiao_ble_common.dtsi&amp;quot;
#include &amp;lt;zephyr/dt-bindings/i2c/i2c.h&amp;gt;
#include &amp;lt;zephyr/dt-bindings/gpio/nordic-nrf-gpio.h&amp;gt;

/ {
	model = &amp;quot;Seeed XIAO BLE Sense&amp;quot;;
	compatible = &amp;quot;seeed,xiao-ble&amp;quot;, &amp;quot;seeed,xiao-ble-sense&amp;quot;;

	msm261d3526hicpm-c-en {
		compatible = &amp;quot;regulator-fixed&amp;quot;;
		enable-gpios = &amp;lt;&amp;amp;gpio1 10 (NRF_GPIO_DRIVE_S0H1 | GPIO_ACTIVE_HIGH)&amp;gt;;
		regulator-name = &amp;quot;MSM261D3526HICPM-C-EN&amp;quot;;
	};

	lsm6ds3tr-c-en {
		compatible = &amp;quot;regulator-fixed-sync&amp;quot;, &amp;quot;regulator-fixed&amp;quot;;
		enable-gpios = &amp;lt;&amp;amp;gpio1 8 (NRF_GPIO_DRIVE_S0H1 | GPIO_ACTIVE_HIGH)&amp;gt;;
		regulator-name = &amp;quot;LSM6DS3TR_C_EN&amp;quot;;
		regulator-boot-on;
		startup-delay-us = &amp;lt;3000&amp;gt;;
	};
};

&amp;amp;i2c0 {
	compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	/* Cannot be used together with spi0. */
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;i2c0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	clock-frequency = &amp;lt;I2C_BITRATE_FAST&amp;gt;;

	lsm6ds3tr_c: lsm6ds3tr-c@6a {
		compatible = &amp;quot;st,lsm6dsl&amp;quot;;
		reg = &amp;lt;0x6a&amp;gt;;
		irq-gpios = &amp;lt;&amp;amp;gpio0 11 GPIO_ACTIVE_HIGH&amp;gt;;
		status = &amp;quot;okay&amp;quot;;
	};
};

&amp;amp;pdm0 {
	pinctrl-0 = &amp;lt;&amp;amp;pdm0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pdm0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	clock-source = &amp;quot;PCLK32M&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;as you can see, i do not have the UART activation. Do I have to although I am not using the physical lanes? (i am doing UART over BLE)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW DO I SET UP BLE WITH NRF XIAO BLE SENSE zephyr?</title><link>https://devzone.nordicsemi.com/thread/526912?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75e3b274-86a3-44ad-bb45-9541684a01de</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you tried an SDK version earlier than V2.7.0, and was it working fine? I&amp;#39;m asking because I have read about some issues with Xiao boards and Sysbuild.&lt;/p&gt;
&lt;p&gt;Could you try building without Sysbuild to see if it works? You can do this by selecting &amp;quot;No Sysbuild&amp;quot; under Build Configuration in VS Code. Let me know the result.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;br /&gt; Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>