<?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>Display driver bus fault in non secure configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84453/display-driver-bus-fault-in-non-secure-configuration</link><description>Hello I have been able to run the lvgl sample in the nrf9160dk, however this only works when built in a secure board, when build in non secure a bus fault occurs. Using the addr2line the fault appears in the 
 
 ssd16xx_init function, while waiting for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Feb 2022 14:44:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84453/display-driver-bus-fault-in-non-secure-configuration" /><item><title>RE: Display driver bus fault in non secure configuration</title><link>https://devzone.nordicsemi.com/thread/351862?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 14:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ee6d79c-fb6e-445c-b661-34188d5ecba0</guid><dc:creator>SnaiderBG</dc:creator><description>&lt;p&gt;Thanks, seems to have solved the problem &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display driver bus fault in non secure configuration</title><link>https://devzone.nordicsemi.com/thread/351782?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 12:14:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4afb186-dd6e-45eb-bad1-1a3a3b7f5fad</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;Could this be the root of the issue?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/commit/5e722c436842068c3ac1d75b440ea505035dfaf6"&gt;https://github.com/zephyrproject-rtos/zephyr/commit/5e722c436842068c3ac1d75b440ea505035dfaf6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you try to add this workaround (switch the two lines) and see if this helps?&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: Display driver bus fault in non secure configuration</title><link>https://devzone.nordicsemi.com/thread/351597?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 15:13:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13e72bc6-860e-4899-aacc-71f417e2adf6</guid><dc:creator>SnaiderBG</dc:creator><description>&lt;p&gt;I use this overlay to describe the device&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3 {
	status = &amp;quot;okay&amp;quot;;
	mosi-pin = &amp;lt;11&amp;gt;;
	miso-pin = &amp;lt;12&amp;gt;;
	sck-pin = &amp;lt;13&amp;gt;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 10 GPIO_ACTIVE_LOW&amp;gt;;
	ssd16xxfb@0 {
		//compatible = &amp;quot;solomon,ssd16xxfb&amp;quot;, &amp;quot;gooddisplay,gdeh0154a07&amp;quot;;
        compatible = &amp;quot;solomon,ssd16xxfb&amp;quot;;
		label = &amp;quot;SSD16XX&amp;quot;;
		spi-max-frequency = &amp;lt;4000000&amp;gt;;
		reg = &amp;lt;0&amp;gt;;
		height = &amp;lt;200&amp;gt;;
		width = &amp;lt;200&amp;gt;;
		pp-width-bits = &amp;lt;8&amp;gt;;
		pp-height-bits = &amp;lt;16&amp;gt;;
		dc-gpios = &amp;lt;&amp;amp;gpio0 9 GPIO_ACTIVE_LOW&amp;gt;;    /* D9 */
		reset-gpios = &amp;lt;&amp;amp;gpio0 8 GPIO_ACTIVE_LOW&amp;gt;;    /* D8 */
		busy-gpios = &amp;lt;&amp;amp;gpio0 7 GPIO_ACTIVE_HIGH&amp;gt;;    /* D7 */
		gdv = [ 00  ];
		sdv = [ 41 a8 32  ];
		vcom = &amp;lt;0x00&amp;gt;;
		border-waveform = &amp;lt;0x05&amp;gt;;
		tssv = &amp;lt;0x80&amp;gt;;
	};

	st7789v@0 {
		compatible = &amp;quot;sitronix,st7789v&amp;quot;;
		label = &amp;quot;ST7789V&amp;quot;;
		spi-max-frequency = &amp;lt;20000000&amp;gt;;
		reg = &amp;lt;0&amp;gt;;
		cmd-data-gpios = &amp;lt;&amp;amp;gpio0 9 GPIO_ACTIVE_LOW&amp;gt;; /* D9 */
		reset-gpios = &amp;lt;&amp;amp;gpio0 8 GPIO_ACTIVE_LOW&amp;gt;; /* D8 */
		width = &amp;lt;240&amp;gt;;
		height = &amp;lt;240&amp;gt;;
		x-offset = &amp;lt;0&amp;gt;;
		y-offset = &amp;lt;0&amp;gt;;
		vcom = &amp;lt;0x19&amp;gt;;
		gctrl = &amp;lt;0x35&amp;gt;;
		vrhs = &amp;lt;0x12&amp;gt;;
		vdvs = &amp;lt;0x20&amp;gt;;
		mdac = &amp;lt;0x00&amp;gt;;
		gamma = &amp;lt;0x01&amp;gt;;
		colmod = &amp;lt;0x05&amp;gt;;
		lcm = &amp;lt;0x2c&amp;gt;;
		porch-param = [ 0c 0c 00 33 33  ];
		cmd2en-param = [ 5a 69 02 01  ];
		pwctrl1-param = [ a4 a1  ];
		pvgam-param = [ D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23  ];
		nvgam-param = [ D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23  ];
		ram-param = [ 00 F0  ];
		rgb-param = [ CD 08 14  ];
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I managed to control the device correctly using the nef9160dk_nrf9160 board in the build configuration&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the configuration&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#Display
CONFIG_DISPLAY=y
CONFIG_DISPLAY_LOG_LEVEL_ERR=y

CONFIG_SPI=y 
CONFIG_SSD16XX=y

#LVGL
CONFIG_LVGL_DISPLAY_DEV_NAME=&amp;quot;SSD16XX&amp;quot;
CONFIG_LVGL_HOR_RES_MAX=200
CONFIG_LVGL_VER_RES_MAX=200
CONFIG_LVGL_VDB_SIZE=100
CONFIG_LVGL_DPI=180
CONFIG_LVGL_BITS_PER_PIXEL=1
CONFIG_LVGL_COLOR_DEPTH_1=y

CONFIG_LVGL=y
CONFIG_LVGL_USE_LABEL=y
CONFIG_LVGL_USE_CONT=y
CONFIG_LVGL_USE_THEME_MATERIAL=y
CONFIG_LVGL_USE_IMG=y
CONFIG_LVGL_USE_DEBUG=y

CONFIG_LVGL_TXT_ENC_UTF8=y

CONFIG_LVGL_FONT_MONTSERRAT_18=y

CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_18=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the error in the sample &amp;quot;out of the box&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Captura-de-pantalla-2022_2D00_02_2D00_07-a-las-9.07.50-a._A000_m_2E00_.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I tried it in the complete program&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Captura-de-pantalla-2022_2D00_02_2D00_07-a-las-9.11.02-a._A000_m_2E00_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display driver bus fault in non secure configuration</title><link>https://devzone.nordicsemi.com/thread/351520?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 12:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b06b6cf-620b-4187-892a-1c3d5fe84ee5</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;Could you share the full bus fault message?&lt;/p&gt;
[quote user=""]&lt;span&gt;&lt;span&gt;ssd16xx_init function, while waiting for the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;!&lt;/span&gt;&lt;span&gt;spi_is_ready&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;bus&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;If this is the function that faulted, it&amp;nbsp;could indicate that your device is &amp;quot;NULL&amp;quot;. How have you described the device in DTS?&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></channel></rss>