<?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>The upgrade HASH verification fails because the bootloader does not connect to the j-link RTT Viewer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107710/the-upgrade-hash-verification-fails-because-the-bootloader-does-not-connect-to-the-j-link-rtt-viewer</link><description>Hi, 
 For development using SDK17.1 and keil,Follow the examples in this document for development: Getting started with Nordic&amp;#39;s Secure DFU bootloader, a step by step guide - Software Development Kit - nRF5 SDK guides - Nordic DevZone (nordicsemi.com</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jan 2024 01:30:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107710/the-upgrade-hash-verification-fails-because-the-bootloader-does-not-connect-to-the-j-link-rtt-viewer" /><item><title>RE: The upgrade HASH verification fails because the bootloader does not connect to the j-link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/466373?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 01:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5ebe24b-c843-4b04-af4b-38119e550aad</guid><dc:creator>stars</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Vidar，&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply. Due to the tight schedule of the project, I felt that the upgrade speed was sacrificed, so I used the normal upgrade method of 100K.&lt;/p&gt;
&lt;p&gt;This ticket can be closed&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The upgrade HASH verification fails because the bootloader does not connect to the j-link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/466224?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 12:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:482c0760-0f4b-4477-ad2f-79bb0aa6331e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Stars,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think your bench supply should have any problems handling&amp;nbsp;this load, but it might be good&amp;nbsp;to measure the supply voltage using an oscilloscope to&amp;nbsp;confirm that the voltage remains stable and accurate throughout the DFU process. Also, maybe&amp;nbsp;double check if you are meeting&amp;nbsp;the min. voltage requirement for your EEPROM.&lt;/p&gt;
[quote user="stars"]That&amp;#39;s a suggestion we&amp;#39;ll put to the test.[/quote]
&lt;p&gt;Sounds good. Thanks.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The upgrade HASH verification fails because the bootloader does not connect to the j-link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/466154?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 08:09:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1abdf828-8212-462d-94e0-6404c937a656</guid><dc:creator>stars</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;Vidar，&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1.8V comes from a DC regulated power supply:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/12abc21d62909db083c560f6171ca2b.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;However, in the test, it was normal when the VCC was 2V. Doesn&amp;#39;t this reduce the capacitor charge.&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have DCDC inductors:&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/bf705c069426368cb442b5a18b75c92.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Another troubleshooting step could be to replace the calls to NVIC_SystemReset() in the bootloader with while(1){}. Then, attach a debugger to your board after the bootloader gets stuck in the loop. This may help you determine the source of the reset. Maybe it&amp;#39;s caused by an error in the IIC communication.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That&amp;#39;s a suggestion we&amp;#39;ll put to the test.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Stars&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The upgrade HASH verification fails because the bootloader does not connect to the j-link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/466151?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 07:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e33d589-152d-4905-9a84-a9237af77d25</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Stars,&lt;/p&gt;
&lt;p&gt;It seems that the issue could be related to the voltage supply in your case. Have you measured your 1.8V supply under load to ensure that it does not drop below the min. supply voltage (1.7V) when the CPU and EEPROM are running?&amp;nbsp;&lt;/p&gt;
[quote userid="107881" url="~/f/nordic-q-a/107710/the-upgrade-hash-verification-fails-because-the-bootloader-does-not-connect-to-the-j-link-rtt-viewer/466146"]Is it possible to reduce the capacitance of the reference circuit so that this reduction in charge and discharge time can help us solve the problem? Or can you recommend how we can design to meet the normal operation of 1.8V VCC?[/quote]
&lt;p&gt;I don&amp;#39;t think you are facing the same problem as the other user. The chip is characterizied and verified with the component values used in the reference circuit.&lt;/p&gt;
&lt;p&gt;Does your design include the optional DCDC inductors? In that case, you could try enabling the DCDC regulator in your bootloader to reduce the peak currents.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&amp;nbsp;&lt;/strong&gt;Another troubleshooting step&amp;nbsp;could be to replace the calls to NVIC_SystemReset() in the bootloader with while(1){}. Then, attach a debugger to your board after the bootloader gets stuck in the loop. This&amp;nbsp;may&amp;nbsp;help you determine the source of the reset. Maybe it&amp;#39;s&amp;nbsp;caused by&amp;nbsp;an error in the IIC communication.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The upgrade HASH verification fails because the bootloader does not connect to the j-link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/466146?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 07:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db059454-ba09-44ac-b2a6-17b3e3653ad9</guid><dc:creator>stars</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Vidar，&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you so much for your guidance. TASKS_CONSTLAT = 1; The setup solved the problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But nrfjprog --memrd 0x40000400 reads not lockup, but SREQ:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/768ee48de5fc2c71608c4e704c91685.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/5503a532dad9795cf367dfe7070251c.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a class="ui-contentpeek internal-link" href="https://devzone.nordicsemi.com/f/nordic-q-a/75722/wierd-hardfault/315447" data-contentid="345a3f553671472687813e05fc412d27" data-contenttypeid="f586769b0822468ab7f3a94d480ed9b0"&gt;RE: Wierd hardfault&lt;/a&gt;:It is speculated that the capacitor charge/discharge speed is not fast enough, resulting in the clock/power rail does not meet the requirements. However, the current design is completely based on the parameters selected by the reference circuit diagram (the equipment works at 1.8V VCC).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/QC26C_5F00_QCM4490_5F00_DVT2_5F00_2023_5F00_1008_5F00_1600_5F00_BLE.pdf"&gt;devzone.nordicsemi.com/.../QC26C_5F00_QCM4490_5F00_DVT2_5F00_2023_5F00_1008_5F00_1600_5F00_BLE.pdf&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The VCC was increased to 2V for testing, and the IIC was upgraded normally at 400K, confirming this conjecture. But using TASKS_CONSTLAT = 1; The power consumption to enter constant delay mode is very high, and the VCC needs to operate at 1.8V.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to reduce the capacitance of the reference circuit so that this reduction in charge and discharge time can help us solve the problem? Or can you recommend how we can design to meet the normal operation of 1.8V VCC?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Stars&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The upgrade HASH verification fails because the bootloader does not connect to the j-link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/465974?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 11:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb6f8eed-5be5-48ac-ab13-80473eb213d6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Starts,&lt;/p&gt;
&lt;p&gt;This suggests that DFU works when the chip is in&amp;nbsp;&lt;a title="Debug Interface mode" href="https://infocenter.nordicsemi.com/topic/ps_nrf52811/dif.html?cp=5_4_0_3_7_3#debuginterfacemode"&gt;Debug Interface mode&lt;/a&gt;&amp;nbsp;for some reason. The bootloader is being reset here:&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1706183604007v1.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please read out the&amp;nbsp;&lt;a title="RESETREAS" href="https://infocenter.nordicsemi.com/topic/ps_nrf52811/power.html?cp=5_4_0_4_2_8_7#register.RESETREAS"&gt;RESETREAS&lt;/a&gt;&amp;nbsp;register after this reset to find the reset source. You can use nrfjprog for this. E.g.,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --memrd 0x40000400&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If it shows a lockup reset, then it may be similar to the problem discussed in this thread:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/75722/wierd-hardfault/315447"&gt;RE: Wierd hardfault&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The upgrade HASH verification fails because the bootloader does not connect to the j-link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/465914?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 06:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:569493c0-0a69-4a31-9312-f6026af34558</guid><dc:creator>stars</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Vidar，&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;keil DEBUG has been tested and DFU is normal when debugging. No HASH verification failure occurs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Stars&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The upgrade HASH verification fails because the bootloader does not connect to the j-link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/465901?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 01:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b122f7d7-a94e-472d-9638-a65818f7fb1a</guid><dc:creator>stars</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Vidar，&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Yes, you understand correctly, the HASH will only check if the JLink RTTViewer is connected (regardless of whether the log is output from RTT or not, because the log is also tested for output from UART, the same phenomenon).&lt;br /&gt;We&amp;#39;ll test the way to start debugging in keil.&lt;/p&gt;
&lt;p&gt;Update a test case. When the IIC speed drops to 100K, the IIC can be upgraded without connecting to the JLink RTTViewer. In other words, the HASH check is successful.&lt;/p&gt;
&lt;p&gt;Does the bootloader verify after the transfer is complete? If one of the packages fails, there is no error check inside, only the final HASH check, because I checked the reference code on the host side, each package seems to be sent without checking (program is: DFUMaster_SPI - downloaded in the connection given at the beginning)&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t understand the relationship between IIC rate, data clutter, and whether j-link is connected to the SWD port.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Stars&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The upgrade HASH verification fails because the bootloader does not connect to the j-link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/465802?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 13:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35c3d266-4138-49ca-86a4-8ce7a03d03ff</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Stars,&lt;/p&gt;
&lt;p&gt;Please correct me if I&amp;#39;m wrong, but do I understand correctly that the bootloader only succeeds in retrieving the firmware image from your EEPROM device when the JLink RTTViewer is connected? In other words, does everything work as long as you are viewing the RTT logs? Does starting a debug session in Keil have the same effect?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>