<?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>Xiao BLE Sense &amp;amp; Round Display - Zephyr+MicroSD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109575/xiao-ble-sense-round-display---zephyr-microsd</link><description>Hi there, 
 I am trying to develop a simple application that must write information within a micro SD card (nothing too fancy, it is just plain data read from the internal accelerometer sensor). 
 /*********************************/ 
 First of all, let</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Apr 2025 12:12:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109575/xiao-ble-sense-round-display---zephyr-microsd" /><item><title>RE: Xiao BLE Sense &amp; Round Display - Zephyr+MicroSD</title><link>https://devzone.nordicsemi.com/thread/531173?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 12:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cff58bb1-b54d-41e3-86ec-51b15ae17171</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It has been a long time, and I hope Daniel got help.&lt;/p&gt;
&lt;p&gt;I just want to note down some resources relevant to this case.&lt;/p&gt;
&lt;p&gt;There are various &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_&amp;lt;device/driver name&amp;gt;_INIT_PRIORITY&lt;/span&gt; configurations that can be used to change the order of initialization.&lt;br /&gt;An alternative is to use the&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;zephyr,deferred-init;&lt;/span&gt; DTS property&amp;nbsp;to stop the driver from being initialized automatically, and&amp;nbsp;initialized manually by the application.&lt;/p&gt;
&lt;p&gt;See also:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/kernel/drivers/index.html#initialization_levels"&gt;https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/kernel/drivers/index.html#initialization_levels&lt;/a&gt;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/kernel/drivers/index.html#deferred_initialization"&gt;https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/kernel/drivers/index.html#deferred_initialization&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense &amp; Round Display - Zephyr+MicroSD</title><link>https://devzone.nordicsemi.com/thread/477944?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 07:11:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5aba7a5-de4b-4a39-91b3-0a2bc5d17c82</guid><dc:creator>dpergarc</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply and your commitment, and you do not need to apologize, I completely understand &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Ok perfect, let&amp;#39;s see if the Seeed community may give us some clues! In any case, I will keep trying it on my own (if it is any consolation, it is also my first time using Zephyr).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Looking forward to hearing from you.&lt;/p&gt;
&lt;p&gt;Kind regards.&lt;/p&gt;
&lt;p&gt;Daniel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense &amp; Round Display - Zephyr+MicroSD</title><link>https://devzone.nordicsemi.com/thread/477908?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 20:58:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d5bebba-5dfa-4fa3-8f3e-1b18eabf8c8b</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;Thank you for your patience, and my apology for the long silence. Recovering from the Easter overloaded period took&amp;nbsp;me much longer than I had hoped.&lt;/p&gt;
&lt;p&gt;I have resumed looking into this case and the direction I am trying to examine the order&amp;nbsp;the Zephyr RTOS initialize the drivers and subsystems.&amp;nbsp;It is my first time doing that, and I haven&amp;#39;t figured out how to do it yet.&lt;/p&gt;
&lt;p&gt;By the way, have you tried to ask the Seeed community to see if someone there has an idea?&lt;/p&gt;
&lt;p&gt;I will continue to investigate, regardless.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense &amp; Round Display - Zephyr+MicroSD</title><link>https://devzone.nordicsemi.com/thread/476063?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2024 08:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7be9409c-7bb3-4d9b-a793-4e0b5bf5fb84</guid><dc:creator>dpergarc</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply! Let&amp;nbsp;me answer the doubts / questions from your latest post:&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/109575/xiao-ble-sense-round-display---zephyr-microsd/476007"]&lt;p&gt;By writing to the microSD card using the Arduino libraries, do you mean you have done that&amp;nbsp;within the nRF Connect SDK (NCS) environment, or do you mean you have done that in the Arduino environment?&lt;/p&gt;
&lt;p&gt;What I previously suggest is to confirm that the microSD read-write feature work fine alone in NCS before integrating the round display.&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I used the Arduino IDE and its own libraries (the ones that the Seeed&amp;nbsp;Wiki suggests):&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://wiki.seeedstudio.com/get_start_round_display/"&gt;https://wiki.seeedstudio.com/get_start_round_display/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I presume they do not have anything to do with the nRF Connect SDK (NCS) environment, since I only installed that in the Visual Studio Code for the application that uses Zephyr OS.&lt;/p&gt;
&lt;p&gt;FYI:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I used the Arduino procedure in order&amp;nbsp;to test both the boards and the micro SD card, just in case they might be damaged or something like that.&lt;/li&gt;
&lt;li&gt;The round display board must be connected to the XIAO BLE Sense because is the one which contains the micro SD card circuitry.&lt;/li&gt;
&lt;/ul&gt;
[quote userid="9456" url="~/f/nordic-q-a/109575/xiao-ble-sense-round-display---zephyr-microsd/476007"]&lt;p&gt;Not sure if I found the correct sample that you are referrencing, but I find a FAT FS sample latest presented &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.3/zephyr/samples/subsys/fs/fat_fs/README.html"&gt;in NCS v2.4.3&lt;/a&gt;, but have been replaced by/refactored into the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.3/zephyr/samples/subsys/fs/fat_fs/README.html"&gt;FAT Filesystem Sample Application&lt;/a&gt;. If this is the correct reference, then notice &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.3/zephyr/samples/subsys/fs/fat_fs/README.html#requirements-for-sd-card-support"&gt;this note in README&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The sample should be able to run with any other board that has “zephyr,&lt;span style="background-color:rgba(255, 255, 0, 1);"&gt;sdmmc-disk&lt;/span&gt;” DT node enabled.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It seems you declare your SD card node with a different driver though. Did you also reference this from somewhere?&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, the example you mention is the one I took as base, this is why my app.overlay file looks like quite similar (the driver you say is the same one), you may take a look:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2021 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/ {
    chosen {
        zephyr,console = &amp;amp;cdc_acm_uart0;
    };
};

&amp;amp;zephyr_udc0 {
    cdc_acm_uart0: cdc_acm_uart0 {
    	compatible = &amp;quot;zephyr,cdc-acm-uart&amp;quot;;
        label = &amp;quot;CDC_ACM_0&amp;quot;;
    };
};

&amp;amp;spi2 {
    compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    cs-gpios = &amp;lt;&amp;amp;gpio0 0x1C (GPIO_ACTIVE_LOW | GPIO_PULL_UP)&amp;gt;;
    pinctrl-0 = &amp;lt;&amp;amp;spi2_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;spi2_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    sdhc0: sdhc@0 {
            compatible = &amp;quot;zephyr,sdhc-spi-slot&amp;quot;;
            reg = &amp;lt;0&amp;gt;;
            status = &amp;quot;okay&amp;quot;;
            mmc {
                compatible = &amp;quot;zephyr,sdmmc-disk&amp;quot;;
                status = &amp;quot;okay&amp;quot;;
            };
            spi-max-frequency = &amp;lt;24000000&amp;gt;;//8000000 /24000000 //16000000
    };
};


&amp;amp;spi2_default {
    group1 {
        psels = &amp;lt;NRF_PSEL(SPIM_SCK, 1, 13)&amp;gt;,
            &amp;lt;NRF_PSEL(SPIM_MOSI, 1, 15)&amp;gt;,
            &amp;lt;NRF_PSEL(SPIM_MISO, 1, 14)&amp;gt;;
        bias-pull-up;
    };
};

&amp;amp;spi2_sleep {
    group1 {
        psels = &amp;lt;NRF_PSEL(SPIM_SCK, 1, 13)&amp;gt;,
            &amp;lt;NRF_PSEL(SPIM_MOSI, 1, 15)&amp;gt;,
            &amp;lt;NRF_PSEL(SPIM_MISO, 1, 14)&amp;gt;;
        bias-pull-up;
        low-power-enable;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope this information can give you more clues to find out what is going on, let me know if you need anything else.&lt;/p&gt;
&lt;p&gt;Looking forward to hearing from you.&lt;/p&gt;
&lt;p&gt;Kind regards.&lt;/p&gt;
&lt;p&gt;Daniel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense &amp; Round Display - Zephyr+MicroSD</title><link>https://devzone.nordicsemi.com/thread/476007?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 17:44:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4010915-9ed6-4f01-afb7-e0b3d8479685</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;By writing to the microSD card using the Arduino libraries, do you mean you have done that&amp;nbsp;within the nRF Connect SDK (NCS) environment, or do you mean you have done that in the Arduino environment?&lt;/p&gt;
&lt;p&gt;What I previously suggest is to confirm that the microSD read-write feature work fine alone in NCS before integrating the round display.&lt;/p&gt;
&lt;p&gt;Not sure if I found the correct sample that you are referrencing, but I find a FAT FS sample latest presented &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.3/zephyr/samples/subsys/fs/fat_fs/README.html"&gt;in NCS v2.4.3&lt;/a&gt;, but have been replaced by/refactored into the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.3/zephyr/samples/subsys/fs/fat_fs/README.html"&gt;FAT Filesystem Sample Application&lt;/a&gt;. If this is the correct reference, then notice &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.3/zephyr/samples/subsys/fs/fat_fs/README.html#requirements-for-sd-card-support"&gt;this note in README&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The sample should be able to run with any other board that has “zephyr,&lt;span style="background-color:rgba(255, 255, 0, 1);"&gt;sdmmc-disk&lt;/span&gt;” DT node enabled.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It seems you declare your SD card node with a different driver though. Did you also reference this from somewhere?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense &amp; Round Display - Zephyr+MicroSD</title><link>https://devzone.nordicsemi.com/thread/475827?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 08:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd177d76-e832-460e-8309-31f76fc1038a</guid><dc:creator>dpergarc</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thank you very much for your quick repply!&lt;/p&gt;
&lt;p&gt;Yeah, I was able to write in the micro SD card using the Arduino libraries since the example includes the TFT init method, which I presume, it manages everything related to the GPIO/SPI signals. The&amp;nbsp;caution warning makes sense because the program stops working when that line (the &amp;quot;&lt;em&gt;tft.init()&lt;/em&gt;;&amp;quot; one) is removed from code.&lt;/p&gt;
&lt;p&gt;Example - SD card function section:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.seeedstudio.com/seeedstudio_round_display_usage/#all-xiao-series-in-addition-to-the-xiao-nrf52840-series"&gt;https://wiki.seeedstudio.com/seeedstudio_round_display_usage/#all-xiao-series-in-addition-to-the-xiao-nrf52840-series&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The point here is that I am not using the Arduino library but the Zephyr OS one instead, so I do not know how&amp;nbsp;to continue due to my lack of&amp;nbsp;experience with&amp;nbsp;TFT screeners in that operating system.&lt;/p&gt;
&lt;p&gt;Is there any work around for the micro SD? How can I proceed to develop something with this screen? All in Zephyr OS of course.&lt;/p&gt;
&lt;p&gt;Looking forward to hearing from you.&lt;/p&gt;
&lt;p&gt;Kind regards.&lt;/p&gt;
&lt;p&gt;Daniel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense &amp; Round Display - Zephyr+MicroSD</title><link>https://devzone.nordicsemi.com/thread/475658?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 13:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26db4dd6-0c46-46ca-b2d9-db299bb25d07</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;Have you tried to ensure that the Round Display driver is initialized before mounting the&amp;nbsp;drive, like the caution warning have warned?&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t fix it, could you please back track a little and verify that the micro-SD card feature works when the&amp;nbsp;Round Display isn&amp;#39;t presented in the Devicetree?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Please&amp;nbsp;be informed&lt;span&gt;&amp;nbsp;that our team is currently having reduced availability due to the Easter holiday. There will be some delays in our response during this time, but&amp;nbsp;we will respond to you at the earliest opportunity.&amp;nbsp;Our apologies for the inconvenience.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>