<?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>nrf52832 waveshare e-paper display spi driver help</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37023/nrf52832-waveshare-e-paper-display-spi-driver-help</link><description>Hi, 
 we are trying to use waveshare 2.9 epaper display with nrf52832, converted stm32 sample code to nrf52 with no luck. It seems we can not send command and data correctly to the display, it is not responding back via Busy line and program hangs on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Dec 2021 16:33:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37023/nrf52832-waveshare-e-paper-display-spi-driver-help" /><item><title>RE: nrf52832 waveshare e-paper display spi driver help</title><link>https://devzone.nordicsemi.com/thread/345024?ContentTypeID=1</link><pubDate>Fri, 24 Dec 2021 16:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7be0361-babb-4840-863f-522cca69e7a2</guid><dc:creator>JoWi</dc:creator><description>&lt;p&gt;Hi, it seems e-paper-drivers vary with with almost each production lot. finally For me &amp;quot;partial refresh&amp;quot; was important. I ended in contacting a manufacturer directly. I used displays from &amp;quot;good-display.com&amp;quot;. They have a good support, but in any case: buy enough displays if you wrote the driver, because re-ordering the same model is often difficult, although bus/mechanics are same. Hence: firmware updates on the HW is indispensable. (my device: Github -&amp;gt; Joembedded ) Best regards, Jo&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 waveshare e-paper display spi driver help</title><link>https://devzone.nordicsemi.com/thread/345022?ContentTypeID=1</link><pubDate>Fri, 24 Dec 2021 11:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f8d5d55-4632-4fd3-995f-170a35f32285</guid><dc:creator>PopePepeTheFirst</dc:creator><description>&lt;p&gt;In the reset function decrease delay to 2ms and run the code... I was stuck in the while loop(busy was giving me 0 in oscilloscope) and decreasing reset duration(active low) to 2 ms solved mine(basically use the same delay in example esp32 or stm code). I dont know why it happens like that..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 waveshare e-paper display spi driver help</title><link>https://devzone.nordicsemi.com/thread/228001?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 23:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3487bd1a-32d5-4f4a-89ed-1fbcb8485e63</guid><dc:creator>JoWi</dc:creator><description>&lt;p&gt;Hi karinca,&lt;/p&gt;
&lt;p&gt;Did you get it work? I just now got a 2.9 B/W and a 2.13 B/W epaper&amp;nbsp;(Waveshare) display too. &lt;br /&gt;I tested the demo from hoeezit (from this topic), but it seems only to work with the 1.54 display.&lt;br /&gt;I would be very happy make an easy test with one of my displays.&lt;br /&gt;&lt;br /&gt;Thanks in advance, Jo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 waveshare e-paper display spi driver help</title><link>https://devzone.nordicsemi.com/thread/175471?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 17:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:811995ea-1f73-41d0-aa42-1cdfe319b742</guid><dc:creator>HDuc</dc:creator><description>&lt;p&gt;Hi&lt;span&gt;&amp;nbsp;&lt;/span&gt;karinca,&lt;/p&gt;
&lt;p&gt;Have you succeed to communicate the nrf52832 board with the&lt;span&gt;&amp;nbsp;&lt;/span&gt;waveshare&lt;span&gt;&amp;nbsp;&lt;/span&gt;epaper&lt;span&gt;&amp;nbsp;&lt;/span&gt;display.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 waveshare e-paper display spi driver help</title><link>https://devzone.nordicsemi.com/thread/165626?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 05:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48bee4fb-0814-46b0-9f8f-65b5f12aff00</guid><dc:creator>hooeezit</dc:creator><description>&lt;p&gt;Probably not relevant to the original poster any more, but I have a project up on Gitlab that runs a Waveshare e-paper demo on an nRF52 DK.&lt;/p&gt;
&lt;p&gt;&lt;a title="Waveshare E-paper Demo" href="https://gitlab.com/hooeezit/waveshare-epaper-nrf52-dk-demo" rel="noopener noreferrer" target="_blank"&gt;https://gitlab.com/hooeezit/waveshare-epaper-nrf52-dk-demo&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 waveshare e-paper display spi driver help</title><link>https://devzone.nordicsemi.com/thread/142386?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 12:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:045a04ef-53e5-4af2-80b1-a00fa2a636ea</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Documentation states that you should use SPI mode 0, which you are.&lt;/p&gt;
&lt;p&gt;Scope your lines (especially the BUSY line) and see if you see anything out of the ordinary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 waveshare e-paper display spi driver help</title><link>https://devzone.nordicsemi.com/thread/142383?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 12:14:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ba927d0-f180-4b30-aef1-7c0600b4ff45</guid><dc:creator>karinca</dc:creator><description>&lt;p&gt;this code is from their stm32 sample, it is working perfectly on stm32f1 uc. I think they wrote a wrong definitoın&amp;nbsp;on function and documentation, this works as it is. I think something&amp;#39;s wrong with the spi communication. I ask waveshare about nrf52&amp;nbsp;code&amp;nbsp;but no response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 waveshare e-paper display spi driver help</title><link>https://devzone.nordicsemi.com/thread/142373?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 12:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a790561-f446-46a0-b14c-026aba155de5</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;The BUSY pin is an output (LOW = busy, HIGH = idle) from the e-paper, as stated in the datasheet, chapter 6:&amp;nbsp;&lt;a href="https://www.waveshare.com/w/upload/e/e6/2.9inch_e-Paper_Datasheet.pdf"&gt;https://www.waveshare.com/w/upload/e/e6/2.9inch_e-Paper_Datasheet.pdf&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note 6-4: This pin (BUSY) is Busy state output pin. When Busy is Low the operation of chip should not be interrupted and any commands should not be issued to the module. The driver IC will put Busy pin Low when the driver IC is working such as: ...&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Given the above info, it looks like this pin shall be&amp;nbsp;LOW when busy, but in your firmware, you seem to be looping over it incorrectly:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**
 *  @brief: Wait until the busy_pin goes LOW
 */
void EPD_WaitUntilIdle(EPD* epd) {
  while(EPD_DigitalRead(epd, epd-&amp;gt;busy_pin) == HIGH) {      //0: busy, 1: idle
    EPD_DelayMs(epd, 100);
    bsp_board_led_invert(BSP_BOARD_LED_0);
  }      
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You need to set the loop to &amp;quot;== LOW&amp;quot; to&amp;nbsp;loop while it&amp;#39;s busy.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>