<?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>Unable to program the flash using the onchip debugger on nrf5340 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122125/unable-to-program-the-flash-using-the-onchip-debugger-on-nrf5340-dk</link><description>I had the nrf5340 DK working for a few weeks now, and while working with SSD1309 OLED peripheral, was trying out a simple display application. Couldn&amp;#39;t get the display device initialized, but started Getting the following error: 
 Error: One or more batch</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Jun 2025 09:20:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122125/unable-to-program-the-flash-using-the-onchip-debugger-on-nrf5340-dk" /><item><title>RE: Unable to program the flash using the onchip debugger on nrf5340 DK</title><link>https://devzone.nordicsemi.com/thread/539502?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 09:20:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2453dec8-205c-488e-99ef-ef6d7826de3b</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="hebsud"]Are&amp;nbsp;there specific changes required to make a SSD1309_128x64 OLED work with the SSD1306 driver and glue code., to get the lvgl application running on the nrf5340DK?[/quote]
&lt;p&gt;You could start by looking at this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/small-i2c-oled-displays-using-nrf-connect-sdk"&gt;blog&lt;/a&gt;&amp;nbsp;which describes how this can be done for SSD1306.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to program the flash using the onchip debugger on nrf5340 DK</title><link>https://devzone.nordicsemi.com/thread/539461?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 01:54:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fded8d88-9163-4b3d-aa73-00fdbd613a94</guid><dc:creator>hebsud</dc:creator><description>&lt;p&gt;Thanks for the response Dejan!&lt;br /&gt;&lt;br /&gt;Trying to get a Hello World app working using SSD1309 SPI OLED.&amp;nbsp;&lt;br /&gt;Are&amp;nbsp;there specific changes required to make a SSD1309_128x64 OLED work with the SSD1306 driver and glue code., to get the lvgl application running on the nrf5340DK?&lt;br /&gt;&lt;br /&gt;With the SSD1309 pins connected to PI.GPIO, the OLED display, powers up but is showing garbage. (attached pic)&lt;br /&gt;What is a recommended route to debug this further?&amp;nbsp;&lt;br /&gt;&lt;br /&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/PXL_5F00_20250617_5F00_013850120.MP.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to program the flash using the onchip debugger on nrf5340 DK</title><link>https://devzone.nordicsemi.com/thread/538650?ContentTypeID=1</link><pubDate>Tue, 10 Jun 2025 11:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:389f7508-a99c-43aa-908e-389da8d03228</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I had the nrf5340 DK working for a few weeks now, and while working with SSD1309 OLED peripheral, was trying out a simple display application. Couldn&amp;#39;t get the display device initialized, but started&amp;nbsp; Getting the following error[/quote]
&lt;p&gt;Do you know which action on your side caused the error? How did you try out&amp;nbsp;a &amp;quot;simple display application&amp;quot;?&lt;/p&gt;
[quote user=""]&lt;p&gt;but started&amp;nbsp; Getting the following error:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error: One or more batch tasks failed:&lt;br /&gt; * 1050029771: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)).&lt;br /&gt; &lt;br /&gt; This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn&amp;#39;t disabled (Generic)&lt;/p&gt;
&lt;p&gt;FATAL ERROR: command exited with status 1: nrfutil --json device --x-ext-mem-config-file /home/xxxxx/ncs/v3.0.2/zephyr/boards/nordic/nrf5340dk/support/nrf5340dk_qspi_nrfutil_config.json x-execute-batch --batch-path /home/xxxxx/blinky_1/build/generated_nrfutil_batch.json --serial-number 1050029771&lt;/p&gt;
&lt;p&gt;* The terminal process terminated with exit code: 1. &lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;[/quote]
&lt;p&gt;Which command generated this output?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>