<?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 LPC5526 generation file for mass production in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5526-generation-file-for-mass-production/m-p/1039626#M40445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using LPC5526, my work consists in my custom bootlaoder + application. &lt;BR /&gt;At start-up bootloader check that no update is needed and jump to the application. In the application the user triggers the start of firmware upgrade operation so I reset the micro and then my bootloader performs the firmware upgrade operations.&lt;/P&gt;&lt;P&gt;If I load the two firmware via MCUXpresso 11.1.0 with PE micro universal multilink, everything works great, the application runs and I can perfectly upgrade the firmware.&lt;/P&gt;&lt;P&gt;But when I generate a file .sap for the mass production something goes wrong. I'm using Cyclone Image Creation and the file file sap generated from merging 2 s-record is successfuly generated with no errors, I load the code with Cyclone Universal. &lt;BR /&gt;At start-up the bootloader jump to application and it works, but when i trigger the firmware upgrade what I see is that the micro is correctly reset, but for some reason encounters a problem that prevent the execution of my Delay function:&lt;/P&gt;&lt;P&gt;void Delay_Ms(uint32_t ms)&lt;BR /&gt;{&lt;BR /&gt; cnt_delay_ms = ms;&lt;/P&gt;&lt;P&gt;while ( cnt_delay_ms != 0 )&lt;BR /&gt; {&lt;BR /&gt; WWDT_Refresh(WWDT);&lt;BR /&gt; __NOP();&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;the cnt_delay_ms is decremented in timer interrupt.&lt;/P&gt;&lt;P&gt;But the firmware is still running because after 30" I received message error of timeout as I expected from my code, so I suppose that when enter in Delay function continue to loop in the while cycle.&lt;/P&gt;&lt;P&gt;The strange thing is that the same function is executed during the start-up and everything works fine, the problem is only when I reset the application and only if I load the application with the sap file.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;BR /&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2020 07:53:24 GMT</pubDate>
    <dc:creator>pokermagalli</dc:creator>
    <dc:date>2020-05-19T07:53:24Z</dc:date>
    <item>
      <title>LPC5526 generation file for mass production</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5526-generation-file-for-mass-production/m-p/1039626#M40445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using LPC5526, my work consists in my custom bootlaoder + application. &lt;BR /&gt;At start-up bootloader check that no update is needed and jump to the application. In the application the user triggers the start of firmware upgrade operation so I reset the micro and then my bootloader performs the firmware upgrade operations.&lt;/P&gt;&lt;P&gt;If I load the two firmware via MCUXpresso 11.1.0 with PE micro universal multilink, everything works great, the application runs and I can perfectly upgrade the firmware.&lt;/P&gt;&lt;P&gt;But when I generate a file .sap for the mass production something goes wrong. I'm using Cyclone Image Creation and the file file sap generated from merging 2 s-record is successfuly generated with no errors, I load the code with Cyclone Universal. &lt;BR /&gt;At start-up the bootloader jump to application and it works, but when i trigger the firmware upgrade what I see is that the micro is correctly reset, but for some reason encounters a problem that prevent the execution of my Delay function:&lt;/P&gt;&lt;P&gt;void Delay_Ms(uint32_t ms)&lt;BR /&gt;{&lt;BR /&gt; cnt_delay_ms = ms;&lt;/P&gt;&lt;P&gt;while ( cnt_delay_ms != 0 )&lt;BR /&gt; {&lt;BR /&gt; WWDT_Refresh(WWDT);&lt;BR /&gt; __NOP();&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;the cnt_delay_ms is decremented in timer interrupt.&lt;/P&gt;&lt;P&gt;But the firmware is still running because after 30" I received message error of timeout as I expected from my code, so I suppose that when enter in Delay function continue to loop in the while cycle.&lt;/P&gt;&lt;P&gt;The strange thing is that the same function is executed during the start-up and everything works fine, the problem is only when I reset the application and only if I load the application with the sap file.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;BR /&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2020 07:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5526-generation-file-for-mass-production/m-p/1039626#M40445</guid>
      <dc:creator>pokermagalli</dc:creator>
      <dc:date>2020-05-19T07:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5526 generation file for mass production</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5526-generation-file-for-mass-production/m-p/1039627#M40446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simone,&lt;/P&gt;&lt;P&gt;Hope you are doing well.&lt;/P&gt;&lt;P&gt;Based on the description you have provided, I don't believe that you have any software or hardware issue, since you are able to flash and run without any problem using the multilink. I'd recommend to contact &lt;A href="https://www.pemicro.com/support/"&gt;P&amp;amp;E support&lt;/A&gt; directly as it seems that the issue might be related in how the program is being loaded with the Cyclone or the image creation.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 21:07:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5526-generation-file-for-mass-production/m-p/1039627#M40446</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-05-21T21:07:59Z</dc:date>
    </item>
  </channel>
</rss>

