<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Secondary Bootloader not working for LPC54608J512BD208 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1279420#M45068</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have referred "&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN12384SW.zip&amp;quot;" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN12384SW.zip"&lt;/A&gt;&amp;nbsp;for creating the secondary bootloader project and application note referrred was "&lt;A href="https://www.nxp.com/docs/en/application-note/AN12384.pdf&amp;quot;" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12384.pdf"&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The secondary bootlaoder code in the zip file was for KEIL IDE, i have ported the code to MCUXpresso IDE. I have attached the secondary bootloader code in this message. I have used Flexcomm 1 for UART communication instead of Flexcomm 0 used in the zip file secondary bootloader code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During loading of Application code given in zip file, using Tera Term software using YMODEM, my Tera Term software gets stuck at 9.1% and ends there after timeout as shown in image below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tera Term software problem reference application code.jpg" style="width: 578px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145093i5D8AC92FCB62ACC4/image-dimensions/578x325?v=v2" width="578" height="325" role="button" title="Tera Term software problem reference application code.jpg" alt="Tera Term software problem reference application code.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, while loading my Application code, the Tera Term software gets stuck at 0.3% as shown in image below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tera Term problem custom application code.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145094i77E06723E1EFDF31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tera Term problem custom application code.jpg" alt="Tera Term problem custom application code.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help in resolving this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Prasanna Naik&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 04:31:23 GMT</pubDate>
    <dc:creator>prasannanaik</dc:creator>
    <dc:date>2021-05-20T04:31:23Z</dc:date>
    <item>
      <title>Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1279420#M45068</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have referred "&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN12384SW.zip&amp;quot;" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN12384SW.zip"&lt;/A&gt;&amp;nbsp;for creating the secondary bootloader project and application note referrred was "&lt;A href="https://www.nxp.com/docs/en/application-note/AN12384.pdf&amp;quot;" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12384.pdf"&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The secondary bootlaoder code in the zip file was for KEIL IDE, i have ported the code to MCUXpresso IDE. I have attached the secondary bootloader code in this message. I have used Flexcomm 1 for UART communication instead of Flexcomm 0 used in the zip file secondary bootloader code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During loading of Application code given in zip file, using Tera Term software using YMODEM, my Tera Term software gets stuck at 9.1% and ends there after timeout as shown in image below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tera Term software problem reference application code.jpg" style="width: 578px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145093i5D8AC92FCB62ACC4/image-dimensions/578x325?v=v2" width="578" height="325" role="button" title="Tera Term software problem reference application code.jpg" alt="Tera Term software problem reference application code.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, while loading my Application code, the Tera Term software gets stuck at 0.3% as shown in image below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tera Term problem custom application code.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145094i77E06723E1EFDF31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tera Term problem custom application code.jpg" alt="Tera Term problem custom application code.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help in resolving this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Prasanna Naik&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 04:31:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1279420#M45068</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2021-05-20T04:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1279613#M45076</link>
      <description>&lt;P&gt;On Further debugging, i found that&lt;/P&gt;&lt;P&gt;1) Following code snippet is getting error response:&lt;/P&gt;&lt;P&gt;errIAP = IAP_Compare(&lt;BR /&gt;gAppFwWriteCurAddr, /* dstaddr. */&lt;BR /&gt;(uint32_t *)(gAppModemStruct.buf), /* srcAddr. */&lt;BR /&gt;MODEM_PACKAGE_BYTE_COUNT /* numOfBytes. */&lt;BR /&gt;);&lt;BR /&gt;if (errIAP != kStatus_IAP_Success)&lt;BR /&gt;{&lt;BR /&gt;err = 10;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in hello_world.c file&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;errIAP&lt;/STRONG&gt; value is 10210 which is&amp;nbsp;kStatus_IAP_CompareError.&lt;/P&gt;&lt;P&gt;Why IAP is not able to write?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 08:30:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1279613#M45076</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2021-05-20T08:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1281728#M45121</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; My colleague has replied to your question.I also have downloaded your code and tested it successfully.Please remember to erase Flash before downloading the program every time.If you fail to run your application, please check teraterm and board.&lt;BR /&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6255906389001w870h540r569" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6255906389001" data-account="6153537070001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6153537070001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6255906389001w870h540r569');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.nxp.com/t5/video/gallerypage/video-id/6255906389001"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;BR /&gt;Yaqi Shang&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 09:51:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1281728#M45121</guid>
      <dc:creator>YaqiShang</dc:creator>
      <dc:date>2021-05-25T09:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1282018#M45134</link>
      <description>&lt;P&gt;Hi Yaqi Shang,&lt;/P&gt;&lt;P&gt;I have commented the flash iap code from bootloader firmware to debug the firmware.&lt;/P&gt;&lt;P&gt;So in my code only uart communication and ymodem code is active.&lt;/P&gt;&lt;P&gt;I am trying to read the frames sent by the Tera Term software and the data sent by LPC546 to Tera Term software.&lt;/P&gt;&lt;P&gt;I have attached the sniffed serial data on both TX and Rx lines.&lt;/P&gt;&lt;P&gt;Can you please see the attached file and check if you find any clue what is going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 19:04:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1282018#M45134</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2021-05-25T19:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1282194#M45139</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Please confirm if the original Keil AN code can run correctly on your side? Can you get the same result as video shows? If original AN SW works well, you can compare it with our own project during debug.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If original AN code can't work well. please resolve it first before your porting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 02:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1282194#M45139</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-05-26T02:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1282285#M45142</link>
      <description>&lt;P&gt;Hi ZhangJennie,&lt;/P&gt;&lt;P&gt;I have found the solution to the above problem.&lt;/P&gt;&lt;P&gt;I am using a different version of Tera Term software i.e. "TeraTerm-4.68", it is working now on the example application bin file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the doubt regarding the shifting of vector table in Custom application file.&lt;/P&gt;&lt;P&gt;The vector table in the application file must start from Sector 1 i.e address 32768 but how do i shift that in MCUXpresso IDE?&lt;/P&gt;&lt;P&gt;I have done the setting of Program Flash as shown in following image to start from address 32768 is that sufficient for IDE to shift the vector address?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, while sending my application code's bin file, the communication gives an error at 74.3% i.e when 262144 bytes of data has been transferred. What could be the problem?&amp;nbsp; Error code (-3) is returned by&amp;nbsp;modem_recvdata() function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Praasanna&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 06:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1282285#M45142</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2021-05-26T06:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1283050#M45169</link>
      <description>&lt;P&gt;Seems you asked a new question on vector relocation.&lt;/P&gt;
&lt;P&gt;vector relocation is necessary for secondary bootloader.&lt;/P&gt;
&lt;P&gt;I suggest you referring this thread&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/How-to-relocate-interrupt-vector-table-in-MCUXpresso/m-p/666705#M416" target="_blank"&gt;https://community.nxp.com/t5/MCUXpresso-IDE/How-to-relocate-interrupt-vector-table-in-MCUXpresso/m-p/666705#M416&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BTW, if you have new question, please create a new thread. Thanks for your cooperation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 03:16:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1283050#M45169</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-05-27T03:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1283071#M45171</link>
      <description>&lt;P&gt;Dear ZhangJennie,&lt;/P&gt;&lt;P&gt;I have not been able to upload my application file yet as mentioned in the last part of my previous reply.&lt;/P&gt;&lt;P&gt;As per my observation, communication stops when the packet number 256 is being transferred. As per YMODEM frame format, one byte is used to represent the frame number which can maximum store value upto 255. Does this mean that maximum size that can be transferred through YMODEM protocol is 256 frames i.e 256 KB.&lt;/P&gt;&lt;P&gt;Have you tried sending File size greater than 256KB?&lt;/P&gt;&lt;P&gt;My Application File (.bin File) size is 353KB&lt;/P&gt;&lt;P&gt;Can you try loading a file size greater than 300KB and confirm if it works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 03:56:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1283071#M45171</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2021-05-27T03:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1283781#M45192</link>
      <description>&lt;P&gt;Can you reproduce the issue with original AN SW? if yes, send your application bin file. We will check.&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 01:57:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1283781#M45192</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-05-28T01:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1283862#M45196</link>
      <description>&lt;P&gt;Hi ZhangJennie,&lt;/P&gt;&lt;P&gt;The application bin file shared in Application note project folder are of very small size i.e. 11KB (It works fine)&lt;/P&gt;&lt;P&gt;My application bin file size is more than 300KB&lt;/P&gt;&lt;P&gt;Due to privacy concerns, i can't share my custom application bin file in the open forum. I have shared my custom aplication bin file in the NXP Ticket number "&lt;SPAN&gt;support case: #00353652". You can take it from there and try on your end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Prasanna&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 04:23:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1283862#M45196</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2021-05-28T04:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary Bootloader not working for LPC54608J512BD208</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1283866#M45198</link>
      <description>&lt;P&gt;OK， this case is handled by my colleague. we will check it.&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 04:31:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-Bootloader-not-working-for-LPC54608J512BD208/m-p/1283866#M45198</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-05-28T04:31:56Z</dc:date>
    </item>
  </channel>
</rss>

