<?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 external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time</link><description>Hi, 
 I am working on the XIAO BLE SENSE board which has nRF52840 SOC with P25Q16h 2MB flash and other sensors 
 I want to access the external flash to store sensor data. 
 Problem facing here - flash is not properly detecting all the time. on every soft</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Mar 2026 14:12:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time" /><item><title>RE: XIAO ble sense external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/thread/564260?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2026 14:12:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4baf5c9-07f3-4b24-bc16-717759902076</guid><dc:creator>Cemothy</dc:creator><description>&lt;p&gt;Did you find a solution to this? I know this Post is 3 years old, but i am currently stuck at a similar issue with windbond external flash W25Q128JV and i really cant get to the bottom of this issue. If you have any insights or ideas please let me know.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XIAO ble sense external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/thread/435522?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 13:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a701637-8aad-40b7-ba79-e4d890fb2350</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Sunil vignesh"]If I understood it correctly, are you asking how we can confirm if the device is working? If so, reading the JEDEC ID helps?[/quote]
&lt;p&gt;Not exactly.&lt;/p&gt;
&lt;p&gt;You said earlier that the QSPI Flash works some times, but other times it does not.&lt;/p&gt;
&lt;p&gt;So get the difference between the &amp;quot;working QSPI flash&amp;quot; and &amp;quot;not workig QSPI flash&amp;quot; on a trace, and the difference might tell us something.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XIAO ble sense external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/thread/435278?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 14:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e42a4ea5-34b2-4244-a53e-e2bc7995ac8c</guid><dc:creator>Sunil vignesh</dc:creator><description>[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/435260"]Maybe there are some issues with the hardware connection of the external QSPI?[/quote]
&lt;p&gt;I highly doubt it, as this behavior is same across all 4 XIAOs I&amp;#39;ve.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/435260"]Try to use a logic analyzer or oscilloscope trace of the QSPI lines.[/quote]
&lt;p&gt;I&amp;#39;ll try it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/435260"]What is the difference between working communication and not?[/quote]
&lt;p&gt;If I understood it correctly, are you asking how we can confirm if the device is working? If so, reading the JEDEC ID helps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XIAO ble sense external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/thread/435260?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 13:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:444377a6-de87-4829-96ac-550f607d8b9c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I got another idea to this:&lt;/p&gt;
&lt;p&gt;Maybe there are some issues with the hardware connection of the external QSPI?&lt;br /&gt;Try to use a logic analyzer or oscilloscope trace of the QSPI lines.&lt;/p&gt;
&lt;p&gt;Are the signals clean or is there a lot of noise here?&lt;/p&gt;
&lt;p&gt;What is the difference between working communication and not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XIAO ble sense external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/thread/434743?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 14:05:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01cb472f-ddc1-4f48-8c82-cbb6ff66dedf</guid><dc:creator>Sunil vignesh</dc:creator><description>[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/434665"]Looks like you changed the sample, right?[/quote]
&lt;p&gt;That&amp;#39;s right.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/434665"]Does your device run a bootloader?[/quote]
&lt;p&gt;Nope.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/434665"]Try to put a short sleep before you check if the QSPI is ready. Does that help?[/quote]
&lt;p&gt;No. That didn&amp;#39;t helped either.&lt;/p&gt;
&lt;p&gt;One interesting thing is, the above mentioned snippet worked as expected in the DK.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/434665"]In that case, I assume that the sample did not work out-of-the-box?[/quote]
&lt;p&gt;You&amp;#39;ve any theory on why you assume it might not works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XIAO ble sense external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/thread/434665?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 11:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:029287df-613d-4432-a9c3-83766f009571</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Sunil vignesh"]I worked with this sample and it works until the DPD is not triggered. Once the device is suspended and resumed back, I&amp;#39;m getting the device busy.[/quote]
&lt;p&gt;Looks like you changed the sample, right?&lt;br /&gt;In that case, I assume that the sample did not work out-of-the-box?&lt;/p&gt;
&lt;p&gt;Does your device run a bootloader?&lt;/p&gt;
&lt;p&gt;Try to put a short sleep before you check if the QSPI is ready. Does that help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XIAO ble sense external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/thread/434491?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 14:18:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b0fb11a-8194-44ec-9b2c-200fd6f1e2b2</guid><dc:creator>Sunil vignesh</dc:creator><description>[quote userid="74103" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/434276"]Does the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/jesd216/README.html"&gt;JESD216 sample&lt;/a&gt; work for you?[/quote]
&lt;p&gt;I worked with this sample and it works until the DPD is not triggered. Once the device is suspended and resumed back, I&amp;#39;m getting the device busy.&lt;/p&gt;
&lt;p&gt;Modified snippet:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint8_t id[3];

	rc = flash_read_jedec_id(dev, id);
	if (rc == 0) {
		printf(&amp;quot;jedec-id = [%02x %02x %02x];\n&amp;quot;,
		       id[0], id[1], id[2]);
	} else {
		printf(&amp;quot;JEDEC ID read failed: %d\n&amp;quot;, rc);
	}

	if (IS_ENABLED(DT_INST_PROP(0, has_dpd))) {
		printf(&amp;quot;\n%s has_dpd&amp;quot;, dev-&amp;gt;name);
	}
	k_sleep(K_SECONDS(5));
	int ret = pm_device_action_run(dev, PM_DEVICE_ACTION_SUSPEND);
	k_sleep(K_SECONDS(5));
	ret = pm_device_action_run(dev, PM_DEVICE_ACTION_RESUME);
	rc = flash_read_jedec_id(dev, id);
	if (rc == 0) {
		printf(&amp;quot;jedec-id = [%02x %02x %02x];\n&amp;quot;,
		       id[0], id[1], id[2]);
	} else {
		printf(&amp;quot;JEDEC ID read failed: %d\n&amp;quot;, rc);
	}

	if (IS_ENABLED(DT_INST_PROP(0, has_dpd))) {
		printf(&amp;quot;\n%s has_dpd&amp;quot;, dev-&amp;gt;name);
	}
    &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.2.99-ncs2 ***
jedec-id = [85 60 15];
JEDEC ID read failed: -16&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I soft reset nRF, the flash device is not even available to read, it comes back only the power is fully isolated and connected back.&lt;/p&gt;
&lt;p&gt;Am I missing any startup sequence?&lt;/p&gt;
&lt;p&gt;-Sunil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XIAO ble sense external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/thread/434340?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 06:23:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8718e60-4439-472c-a3ad-85efa9a4ec81</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Sunil vignesh"]You mean a time delay (K_SLEEP()) before checking?[/quote]
&lt;p&gt;Yes&lt;/p&gt;
[quote user="Sunil vignesh"]Did you mean like MCUBOOT, NSIB?[/quote]
&lt;p&gt;Yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XIAO ble sense external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/thread/434276?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 15:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5882757-27d7-48ac-af24-3e3185f0a38b</guid><dc:creator>Sunil vignesh</dc:creator><description>[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/434202"]Could this be a timing issue?[/quote]
&lt;p&gt;I&amp;#39;m assuming the same. As the flash is powered via GPIO, but not sure about it yet.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/434202"]Try to put a short sleep before you check if the QSPI is ready. Does that help?[/quote]
&lt;p&gt;You mean a time delay (K_SLEEP()) before checking?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/434202"]Does the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/jesd216/README.html"&gt;JESD216 sample&lt;/a&gt; work for you?[/quote]
&lt;p&gt;I&amp;#39;ll work that out and let you know if it changes anything.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/101385/xiao-ble-sense-external-flash-p25q16h-not-detecting-all-the-time/434202"]Does your device run a bootloader?[/quote]
&lt;p&gt;Did you mean like MCUBOOT, NSIB?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Sunil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XIAO ble sense external Flash P25Q16H not detecting all the time</title><link>https://devzone.nordicsemi.com/thread/434202?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 11:57:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:360e7b48-48b5-4d27-a8e8-93358a6eb170</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user=""]Problem facing here - flash is not properly detecting all the time. on every soft reset or pin to reset . QSPI flash is not ready but when i powered off and put back ON after some time the QSPI ready and reading the data.[/quote]
&lt;p&gt;Could this be a timing issue?&lt;br /&gt;Try to put a short sleep before you check if the QSPI is ready. Does that help?&lt;/p&gt;
&lt;p&gt;Does your device run a bootloader?&lt;/p&gt;
&lt;p&gt;Does the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/jesd216/README.html"&gt;JESD216 sample&lt;/a&gt; work for you?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>