<?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>OLED show text in bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89547/oled-show-text-in-bootloader</link><description>Hello, 
 SDK17.2, nRF52840, Keil5, SIP cannect to a OLED, 
 now, i want to OLED show text &amp;quot;DFUing&amp;quot; in the bootloader, 
 when no app, bootloader can show text in OLED, but Reset button will can&amp;#39;t restart,no logs output, 
 breakdown or Flash memory is damaged</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Jul 2022 12:09:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89547/oled-show-text-in-bootloader" /><item><title>RE: OLED show text in bootloader</title><link>https://devzone.nordicsemi.com/thread/378286?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 12:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:820b664d-f9a1-4728-a048-ac22e5356a5b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="yuyou"]&lt;p&gt;&lt;span&gt;large array in app work well,&amp;nbsp; but in bootloader will&amp;nbsp; destroy flash memory? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;or need set larger IRAM1 size. the max&amp;nbsp;IRAM1 size is?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;The application and bootloader usually can use the same RAM size, as they do not run at the same time. Maximum RAM size is determined by the chip type, see &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;Adjustment of RAM and Flash Memory&lt;/a&gt;&amp;nbsp;tutorial.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OLED show text in bootloader</title><link>https://devzone.nordicsemi.com/thread/375171?ContentTypeID=1</link><pubDate>Sat, 02 Jul 2022 01:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6afc36e7-4dc0-4fa6-8436-a1b94086652f</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for reply,&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;the spi pins is follow,it work well in app.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;span&gt;no pin&amp;nbsp;&amp;nbsp;of these overlap with the RESET pin for the nRF52840;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;#define spi_miso_pin 23&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;#define spi_mosi_pin 20&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;#define spi_sck_pin 19&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;How do you know that the reset button is not working?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;because RTT no logs output when button reset;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After a night&amp;#39;s effort, i find the&amp;nbsp;problem is&amp;nbsp;Font array is too large.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i set array minimization, it can button reset, and all work well.&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/pastedimage1656724541889v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;large array in app work well,&amp;nbsp; but in bootloader will&amp;nbsp; destroy flash memory? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;or need set larger IRAM1 size. the max&amp;nbsp;IRAM1 size is?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OLED show text in bootloader</title><link>https://devzone.nordicsemi.com/thread/375130?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 14:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1105505d-8fb4-4ab5-b405-2623ee01e2b9</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which pins do you use for SPI? Do any of these overlap with the RESET pin for the nRF52840?&lt;/p&gt;
[quote user=""]&lt;p&gt;when no app,&amp;nbsp; &amp;nbsp;bootloader can show text in OLED, but Reset button will can&amp;#39;t restart,no logs output,&lt;/p&gt;
&lt;p&gt;breakdown or&amp;nbsp;Flash memory is damaged?&lt;/p&gt;
&lt;p&gt;if remove the line of&amp;nbsp;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;nrf_drv_spi_init&lt;/span&gt;, &lt;span&gt;Reset button will no show text and can got logs output&lt;/span&gt;.&lt;/p&gt;[/quote]
&lt;p&gt;The reset button should normally not be affected by what is running on the chip, as this is enabled in UICR, either during programming or by the application). Once it is enabled, it will be enabled until UICR is erased.&lt;/p&gt;
&lt;p&gt;How do you know that the reset button is not working? Could it be an error in your bootloader code causing it to be stuck in a reset loop?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>