<?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>Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120964/issue-of-nordic-at45-dataflash-driver-demo-on-nrf9160dk-nrf9160-board</link><description>Hello, 
 I am trying to play the AT45 DataFlash driver by directly copying the sample code from nRF connect SDK v2.9.1 (C:\ncs\v2.9.1\zephyr\samples\drivers\spi_flash_at45). 
 Board target: nrf9160dk/nrf9160. 
 I did not modify anything in the sample</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 May 2025 12:19:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120964/issue-of-nordic-at45-dataflash-driver-demo-on-nrf9160dk-nrf9160-board" /><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/534881?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 12:19:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcedd63a-a69c-4bb5-a4ba-8cd95d9fd116</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;When the JEDEC ID is read as 0, it means the chip did not respond (MISO&amp;nbsp;kept low during the transfer). However, it&amp;rsquo;s interesting that you were able to communicate with the chip after swapping&amp;nbsp;to the wrong node. Please ensure that the correct CS pin is connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/534856?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 11:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9178eff-af35-4c5b-b7e9-a45ec2f6f16f</guid><dc:creator>mark_82</dc:creator><description>&lt;p&gt;Yes. The above&amp;nbsp;&lt;span&gt;output is when I swap two nodes. However, the original code I run was:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6758.Untitled1.png" /&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and it was the same result as run your 1212.hex on my board. Do you mean I have to insure CS P0.10 is configured as an OUTPUT if I enabled AT45DB1 node (original code no changed)? Why my JEDEC ID read out is 00 00 00? What is your terminal result when you generating&amp;nbsp;1212.hex?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/534801?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 07:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4101d90e-9575-4a16-bc43-f3b25dadb7a3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The log output shows that the driver is now able to read the JEDEC ID from the chip. It also indicates that you have disabled the AT45DB1 node and instead enabled AT45DB0, which uses P0.20 for CS.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1747033373068v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1747033446702v3.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/534641?ContentTypeID=1</link><pubDate>Fri, 09 May 2025 11:48:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7c42dfe-776b-4480-8bdc-957b0d19e761</guid><dc:creator>mark_82</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I found that my&amp;nbsp;&lt;span&gt;CS P0.10 -&amp;gt; PIN_CNF[10] is set as an INPUT. How can I set it as OUTPUT without changing the original code? Why is your default setting as OUTPUT? Any other pins I need to set to&amp;nbsp;OUTPUT bare in mind?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4774.Untitled.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/534492?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 13:47:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3b17886-1a95-43c8-add4-34e41507ca90</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;m just trying to understand what I&amp;#39;m missing, as it doesn&amp;#39;t make any sense that CS on P0.10 isn&amp;#39;t being toggled when we&amp;#39;re testing with the exact same firmware.&amp;nbsp;&lt;/p&gt;
[quote user="mark_82"]How can I check and change this pin&amp;nbsp;configuration register to set as an output?&amp;nbsp;[/quote]
&lt;p&gt;Start a debug session using our VS code extension and use the &lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/reference/ui_sidebar_debugging.html#peripherals"&gt;Peripherals View&lt;/a&gt;&amp;nbsp;to view the GPIO configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/534337?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 16:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d59bf7b2-d333-4bb1-bc33-54fe1f934ccb</guid><dc:creator>mark_82</dc:creator><description>&lt;p&gt;Why does it matter? My&amp;nbsp;&lt;span&gt;CS P0.10 signal is always staying HIGH when I flash your hex. How can I check and change this pin&amp;nbsp;configuration register to set as an output?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/533576?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2025 13:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f4d4798-27a7-47ad-9a93-82dc8b72713c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Are you checking the CS signal on P0.10? You&amp;nbsp;can also check the pin configuration register to confirm it&amp;#39;s set as an output, and verify that the signal toggles when you manually&amp;nbsp;set the output low in OUTSET.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/533526?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2025 09:40:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bb1ba47-628a-41df-9e8c-52fddd2b56a6</guid><dc:creator>mark_82</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The firmware you sent is not working as well!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The command line run:&lt;/span&gt;&lt;pre class="ui-code" data-mode="text"&gt;PS D:\Documents\GunfireTracker\Apps\spi_flash_at45&amp;gt; nrfjprog --program 1212.merged.hex --chiperase --reset
[ #################### ]   0.587s | Erase file - Done erasing
[ #################### ]   0.514s | Program file - Done programming
WARNING: A programming operation has been performed without --verify.
WARNING: Programming can fail without error.
Applying system reset.
Run.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The UART VCOM running your *.hex the same as my build:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.252,960] &amp;lt;27&amp;gt;[1;31m&amp;lt;err&amp;gt; spi_flash_at45: Wrong JEDEC ID: 00 00 00, expected: 1F 27 01&amp;lt;27&amp;gt;[0m&amp;lt;\r&amp;gt;&amp;lt;\n&amp;gt;
*** Booting nRF Connect SDK v2.9.0-7787b2649840 ***&amp;lt;\r&amp;gt;&amp;lt;\n&amp;gt;*** Using Zephyr OS v3.7.99-1f8f3dc29142 ***&amp;lt;\r&amp;gt;&amp;lt;\n&amp;gt;
DataFlash sample on nrf9160dk&amp;lt;\r&amp;gt;&amp;lt;\n&amp;gt;at45db321e@1: device not ready.&amp;lt;\r&amp;gt;&amp;lt;\n&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/533454?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 17:04:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0be5f7d1-d3cc-4317-ac16-70636cb2fa74</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You should get an error if there were any issues with loading of the hex file. Did you check the debug log output or probe the bus lines after you programmed this hex?&lt;/p&gt;
&lt;p&gt;You can also program the hex with &lt;a href="https://docs.nordicsemi.com/bundle/nrfutil/page/README.html"&gt;nrfutil&lt;/a&gt; from the command line:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfutil device program --firmware merged.hex --options chip_erase_mode=ERASE_ALL,reset=RESET_PIN,verify=VERIFY_READ&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/533449?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 15:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da577555-8eed-448e-83ad-759d689f0ffc</guid><dc:creator>mark_82</dc:creator><description>&lt;p&gt;Hi, I am using nRF Programmer to flash my board. I press &amp;quot;flash &amp;amp; write&amp;quot; button and it never shown green blocks? Any other way I can flash the hex?&amp;nbsp;&lt;img style="max-height:194px;max-width:347px;" alt=" " height="194" src="https://devzone.nordicsemi.com/resized-image/__size/694x388/__key/communityserver-discussions-components-files/4/1212hex.png" width="347" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/533351?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 09:52:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:899e4602-24f6-42c9-a256-6839d35540b8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I did not make any changes to the sample. CS was on P0.10 and MOSI on P0.12. Attached is the merged.hex from my build.&amp;nbsp;Could you try it and see if you get the same result?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1212.merged.hex"&gt;devzone.nordicsemi.com/.../1212.merged.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/533172?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2025 11:37:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11c34ff7-4c55-4327-9774-8482e61fe3d9</guid><dc:creator>mark_82</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Now, I enable &lt;span&gt;at45db0 node to status = &amp;quot;okay&amp;quot;; and disable&amp;nbsp;at45db0 node&amp;nbsp;to&amp;nbsp;status = &amp;quot;disabled&amp;quot;. The prob result are both of&amp;nbsp;P0.10 and&amp;nbsp;P0.20 are always staying&amp;nbsp;HIGH and&amp;nbsp;P0.11 (SCK) NO constant clocking output! It is the same result as I swap the node. Which pin did you probe on your waveform?&amp;nbsp;P0.15 -&amp;gt; CS and&amp;nbsp;P0.13 -&amp;gt; MOSI? Did you assign it to different pins when you&amp;nbsp;running the original sample?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue of Nordic AT45 DataFlash driver demo on (nrf9160dk/nrf9160) board.</title><link>https://devzone.nordicsemi.com/thread/533088?ContentTypeID=1</link><pubDate>Sat, 26 Apr 2025 06:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d1f47b9-285a-4e8b-9e1e-900ff0246758</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have this device to test with, but I was able to get the CS to toggle by running the original sample project on my nRF9160 DK:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1745647414766v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Did you probe p0.10? P0.20 is the CS assigned to the disabled&amp;nbsp;at45db0 node.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>