<?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 Zephyr SD Access Through Expansion Board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98746/xiao-ble-sense-zephyr-sd-access-through-expansion-board</link><description>Hello All, 
 
 I have been trying to get the Xiao BLE Sense with the nrf52840 chip in conjunction with the expansion board to access the SD card using the FatFS example from zephyr. All my processes and files where I got my information will be linked</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Aug 2024 05:15:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98746/xiao-ble-sense-zephyr-sd-access-through-expansion-board" /><item><title>RE: Xiao BLE Sense Zephyr SD Access Through Expansion Board</title><link>https://devzone.nordicsemi.com/thread/497919?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 05:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77872b9a-8c13-45f7-9c7c-6f88a7b4a017</guid><dc:creator>PjGlasso</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;So I recently started on the NRF_SDK path and i had the same thought of an Overlay ? or DTS file for the Hardware description based off of the schematic. I have a self test Drag&amp;amp;Drop Uf2 file and the ino file for it on the seeed forum. I lights the LEDs,Test the Flash , Tests the SD card (for a fatfs formatted sd card inserted), displays the results on the OLED I2C display , the buzzer is A3 plays a sound. I did find while testing , sometimes it was better to use the GPIO pin numbers in the sketches to get some to work. the self Test also spits out the Device number , MAC address and sets up a BLE central for LED control.&lt;a href="https://forum.seeedstudio.com/t/xiao-expansion-board-drag-drop-testing-uf2-flash-files/275874/4?u=pj_glasso"&gt;&lt;strong&gt;Here is the link&lt;/strong&gt;&lt;/a&gt; to the posts if it&amp;#39;s allowed&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I want to start making the same test for it using the NRF_SDK so I&amp;#39;m just beginning.&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://forum.seeedstudio.com/uploads/default/optimized/2X/2/2f268592d636c16b6310bef8d6e2096b33062cd5_2_690x388.jpeg" /&gt;&lt;/p&gt;
&lt;p&gt;I have an nRF52840DK and a Nordic Dongle, and the Xiao SWD expansion board and connect them together here use the JLink with the SDK and Nrf_for Desktop Programmer no problem. Built the blinky and sent to both devices.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://forum.seeedstudio.com/uploads/default/original/2X/3/326a2d49e8a15b69389a57db9a59c69a23aa33fa.jpeg" /&gt;&lt;/p&gt;
&lt;p&gt;The SD is SPI interface and the CS D2 or GPIO P0.28&lt;/p&gt;
&lt;p&gt;The serial output looks like this.:&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;Power ON 
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt; 
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Xiao Expansion board and MCU check &amp;amp; Test compiled on Aug 13 2024 at 00:45:24
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Processor came out of reset.
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Selected MCU: nRF52840
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Xiao Unit: 0993
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Playing startup sound
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;RTC Date &amp;amp; Time is:8/7/24 12:50:34
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Testing R G B LED - RED, GREEN, BLUE... 
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Initializing SD card...Card Mounted
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Card type: SDHC
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Volume type is:    FAT32
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;SD Volume size (Gb):  29.12
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Read I2C 
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;    SDA pin: 4
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;    SCL pin: 5
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;    I2C address: 68
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Xiao MAC: 93:8E:19:D7:65:53
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Advertising Bluetooth Device
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;  as: Xiao 0993&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;---END---&lt;/p&gt;
&lt;p&gt;I find this image to be the most accurate, &lt;img style="max-height:240px;max-width:320px;" alt="Good Pinout " src="https://files.seeedstudio.com/wiki/XIAO-BLE/pinout2.png" /&gt;&lt;/p&gt;
&lt;p&gt;here is a link to the video&lt;/p&gt;
&lt;p&gt;&lt;a title="Expansion board self test and BLE" href="https://forum.seeedstudio.com/t/xiao-expansion-board-drag-drop-testing-uf2-flash-files/275874/4?u=pj_glasso"&gt;https://forum.seeedstudio.com/t/xiao-expansion-board-drag-drop-testing-uf2-flash-files/275874/4?u=pj_glasso&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;is it an overlay that is needed, when is it an Overlay and when is it a Device tree?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I get a device tree for the sense version would be different from the BLE only version. (no IMU or PDM mic)&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;p&gt;GL&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/263a.svg" title="Relaxed"&gt;&amp;#x263a;&lt;/span&gt;&amp;nbsp;PJ&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/270c.svg" title="V"&gt;&amp;#x270c;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;would a different Overlay be used for this expansion base as well?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt="small expansion base with optional flash chip" src="https://files.seeedstudio.com/wiki/Grove-Shield-for-Seeeduino-XIAO/img/xiao_-Preview-25.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt="Breakable expansion with Flash on bottom" src="https://files.seeedstudio.com/wiki/Grove-Shield-for-Seeeduino-XIAO/img/pinout.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense Zephyr SD Access Through Expansion Board</title><link>https://devzone.nordicsemi.com/thread/474210?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 08:03:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:160960c1-4f18-4ab6-bfed-841a06e51109</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have an issue, I would recommend that you open a new thread specific to the problem that you&amp;#39;re seeing. Remember to share logs and details on what you&amp;#39;re observing.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense Zephyr SD Access Through Expansion Board</title><link>https://devzone.nordicsemi.com/thread/474153?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2024 22:09:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21159337-a6b3-4b2d-b5a3-3792762aa42b</guid><dc:creator>vgarcive</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you share how you got it working? I am facing the same issue and I am bit stuck in here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense Zephyr SD Access Through Expansion Board</title><link>https://devzone.nordicsemi.com/thread/421057?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 13:31:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b5449ac-7247-432e-a22f-2b4667ef622f</guid><dc:creator>wellmacj</dc:creator><description>&lt;p&gt;Ill let you know once they get back to me&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Cage&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense Zephyr SD Access Through Expansion Board</title><link>https://devzone.nordicsemi.com/thread/420915?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 07:31:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d95e7c3b-df4f-4a5d-8040-2589542020f7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I&amp;#39;m glad to hear that you got it working. Was the problem NFC pin related?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense Zephyr SD Access Through Expansion Board</title><link>https://devzone.nordicsemi.com/thread/420825?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 14:33:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec57fff8-71fb-4ec0-a851-343133d3cba2</guid><dc:creator>wellmacj</dc:creator><description>&lt;p&gt;Thank you for the help&amp;nbsp;&lt;span&gt;H&amp;aring;kon however one of my colleagues gotten this working, I can link how they got it working or I can just close the ticket, which would you prefer?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense Zephyr SD Access Through Expansion Board</title><link>https://devzone.nordicsemi.com/thread/420818?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 14:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e17f8a3-8db6-43f8-8c16-af003220f8ef</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;P0.09 and P0.10 are gpios dedicated to the NFC pins.&lt;/p&gt;
&lt;p&gt;To use these as normal GPIOs, please set &amp;quot;CONFIG_NFCT_PINS_AS_GPIOS=y&amp;quot;.&lt;/p&gt;
&lt;p&gt;Could you try this and see if that works?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Xiao BLE Sense Zephyr SD Access Through Expansion Board</title><link>https://devzone.nordicsemi.com/thread/420576?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 18:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bccdd0a3-4142-47ea-953f-f4641375c76f</guid><dc:creator>wellmacj</dc:creator><description>&lt;p&gt;&lt;span&gt;[00:00:05.364,227] &lt;b&gt;&amp;lt;err&amp;gt; main: Storage init ERROR!&lt;/b&gt; &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:05.364,257] &lt;b&gt;&amp;lt;err&amp;gt; fs: fs mount error (-5)&lt;/b&gt; &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error mounting disk.&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-converted-space"&gt;this is the specific error I get.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>