<?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>GFX example very slow - nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60988/gfx-example-very-slow---nrf52840</link><description>I am working on a new design and i am using ST7789 (240 X 320 pixels) screen with nRF52840, it is working fine. I have followed the code provided in SDK example (big thanks). 
 But it is painfully slow, is there a way to make it faster considering nRF52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 May 2020 10:24:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60988/gfx-example-very-slow---nrf52840" /><item><title>RE: GFX example very slow - nRF52840</title><link>https://devzone.nordicsemi.com/thread/249156?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 10:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ee4c2c-7398-4ecd-a085-833558ae774a</guid><dc:creator>Raja</dc:creator><description>&lt;p&gt;Thank you Simon i will check the link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GFX example very slow - nRF52840</title><link>https://devzone.nordicsemi.com/thread/248845?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 05:12:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a07d61ac-fff8-4e22-bb53-58857c011564</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Any luck on your end? You can check out my colleague &lt;a href="https://jimmywongiot.com/2019/04/30/overview-on-spi-master-slave-on-nrf52-series/"&gt;Jimmy&amp;#39;s blog post&lt;/a&gt; on how to use the SPI Master and slave in the nRF52 series. The guide explains how to use the SPIM3 with the DCX/DC pin which is required when using SPIM_EXTENDED_ENABLED.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GFX example very slow - nRF52840</title><link>https://devzone.nordicsemi.com/thread/248383?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 09:40:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3cf9d6b-5615-4619-a1d2-4aae38101243</guid><dc:creator>Raja</dc:creator><description>&lt;p&gt;There are no error on compilation. Just the screen does not render anything.&lt;/p&gt;
&lt;p&gt;To double check, does it mean when using SPIM (&lt;span&gt;NRFX_SPIM_EXTENDED_ENABLED) spi will work faster?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I see in current gfx project&amp;nbsp;SPI_ENABLED i will disable it and just use NRFX_SPIM_ENABLED i will give it a try today.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;// &amp;lt;e&amp;gt; SPI_ENABLED - nrf_drv_spi - SPI/SPIM peripheral driver - legacy layer&lt;br /&gt;//==========================================================&lt;br /&gt;#ifndef SPI_ENABLED&lt;br /&gt;#define SPI_ENABLED 1&lt;br /&gt;#endif&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;// &amp;lt;e&amp;gt; NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver&lt;br /&gt;//==========================================================&lt;br /&gt;#ifndef NRFX_SPIM_ENABLED&lt;br /&gt;#define NRFX_SPIM_ENABLED 1&lt;br /&gt;#endif&lt;br /&gt;// &amp;lt;q&amp;gt; NRFX_SPIM0_ENABLED - Enable SPIM0 instance&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#ifndef NRFX_SPIM3_ENABLED&lt;br /&gt;#define NRFX_SPIM3_ENABLED 1&lt;br /&gt;#endif&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GFX example very slow - nRF52840</title><link>https://devzone.nordicsemi.com/thread/248350?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 07:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35b0ddf0-76b7-4169-8ca3-2ffb3f6ed68a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Do you see any errors when compiling/building? At first glance, I&amp;#39;m not able to spot what&amp;#39;s wrong in your init function. You should be able to see an error either in when compiling or by debugging the application.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GFX example very slow - nRF52840</title><link>https://devzone.nordicsemi.com/thread/248102?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 09:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ce21dfd-9ab0-4cbe-9ddd-47c00d997b25</guid><dc:creator>Raja</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;I tried by updating code as shown below, but a&lt;span&gt;fter updating it stopped working. What is it that i am doing wrong?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;--&amp;gt;ST7789.c&lt;/p&gt;
&lt;p&gt;---------------------------------&lt;/p&gt;
&lt;p&gt;#include &amp;quot;nrfx_spim.h&amp;quot;&lt;/p&gt;
&lt;p&gt;#define SPI_INSTANCE 3&lt;br /&gt;static const nrfx_spim_t spi = NRFX_SPIM_INSTANCE(SPI_INSTANCE);&lt;/p&gt;
&lt;p&gt;//static const nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(ST7735_SPI_INSTANCE);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;static ret_code_t hardware_init(void)&lt;br /&gt;{&lt;br /&gt; ret_code_t err_code;&lt;/p&gt;
&lt;p&gt;nrf_gpio_cfg_output(ST7789_DC_PIN);&lt;/p&gt;
&lt;p&gt;nrfx_spim_config_t spi_config = NRFX_SPIM_DEFAULT_CONFIG;&lt;br /&gt; spi_config.frequency = NRF_SPIM_FREQ_32M;&lt;br /&gt; spi_config.ss_pin = ST77&lt;span&gt;89&lt;/span&gt;_SS_PIN;&lt;br /&gt; spi_config.miso_pin = ST77&lt;span&gt;89&lt;/span&gt;_MISO_PIN;&lt;br /&gt; spi_config.mosi_pin = ST77&lt;span&gt;89&lt;/span&gt;_MOSI_PIN;&lt;br /&gt; spi_config.sck_pin = ST77&lt;span&gt;89&lt;/span&gt;_SCK_PIN;&lt;br /&gt; //spi_config.dcx_pin = NRFX_SPIM_DCX_PIN;&lt;br /&gt; spi_config.use_hw_ss = true;&lt;br /&gt; spi_config.ss_active_high = false;&lt;br /&gt; APP_ERROR_CHECK(nrfx_spim_init(&amp;amp;spi, &amp;amp;spi_config, NULL, NULL));&lt;br /&gt; return err_code;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;--&amp;gt;pca10056\blank\config\sdk_config.h&lt;/p&gt;
&lt;p&gt;&lt;span&gt;---------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;#ifndef NRFX_SPIM3_ENABLED&lt;br /&gt;#define NRFX_SPIM3_ENABLED 1&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;#ifndef NRFX_SPIM_EXTENDED_ENABLED&lt;br /&gt;#define NRFX_SPIM_EXTENDED_ENABLED 1&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GFX example very slow - nRF52840</title><link>https://devzone.nordicsemi.com/thread/248068?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 07:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23d0800d-fcd6-444e-99e5-b3d60cee76b3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrfx_spim_example.html"&gt;nrfx_spim example&lt;/a&gt; uses the extended features of SPI. Can you try to enable NRFX_SPIM_EXTENDED_ENABLED in the sdk_config.h file and set the frequency to spi_config.frequency = NRF_SPIM_FREQ_32M;&lt;/p&gt;
&lt;p&gt;Keep in mind that you need to use SPIM instance 3 (SPIM3) in order to support the 16 or 32 MHz frequencies.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>