<?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 Re: StartupCode LPC1517 random line issue in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863003#M34397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ATHMESH NANDAKUMAR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please check your cr_startup__lpc15xx.c file, ResetISR(void) function, this is the startup entry point after reset:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76872iBE8BB2C3C01F8B5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Enter SystemInit():&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76904i3C34D36E6EEF5281/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can find on my side, it calls Board_systemInit();&lt;/P&gt;&lt;P&gt;You also need to check your code, you are calling chip_systemInit or the Board_SystemInit?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76949iBF0C106B66EA2778/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you test the official lpcopen code on your side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2019 02:17:19 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2019-01-14T02:17:19Z</dc:date>
    <item>
      <title>StartupCode LPC1517 random line issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/862998#M34392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;There is an issue in my code after removing external oscillator from custom board working on&amp;nbsp;&lt;STRONG style="word-wrap: break-word; font-family: 'Helvetica',sans-serif;"&gt;LPC1517&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; orphans: 2; -webkit-text-stroke-width: 0px; word-wrap: break-word; word-spacing: 0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; orphans: 2; -webkit-text-stroke-width: 0px; word-wrap: break-word; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;IDE &amp;nbsp; : &amp;nbsp; MCUXpressoIDE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; orphans: 2; -webkit-text-stroke-width: 0px; word-wrap: break-word; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Library : REDLIB&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; orphans: 2; -webkit-text-stroke-width: 0px; word-wrap: break-word; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Clock &amp;nbsp; : Internal RC Clock PLLed to 72MHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; orphans: 2; -webkit-text-stroke-width: 0px; word-wrap: break-word; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Processor &amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG style="word-wrap: break-word; font-family: 'Helvetica',sans-serif;"&gt;LPC1517&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; orphans: 2; -webkit-text-stroke-width: 0px; word-wrap: break-word; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Issue:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;After debug, the code jumps to some other line at start and not to main or SystemInit().&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76407i697756D1A8BBF82F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error.png" alt="Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Even after putting a breakpoint at cr_startup code, the issue is same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Athmesh Nandakumar&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 11:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/862998#M34392</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2019-01-09T11:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: StartupCode LPC1517 random line issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/862999#M34393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ATHMESH NANDAKUMAR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What the code you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you use our lpc1549 lpcopen sample code on your side which just as what I recommended you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you use the lpcopen code, as you know, there has two lib: chip lib and board lib.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You need to change two lib MCU to LPC1517,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76582iAFCD8598B24A4EE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then if you want to use the internal IRC instead of the external crystal, you need to modify the board_sysinit.c function void Board_SetupClocking()&lt;/P&gt;&lt;P&gt;void Board_SetupClocking(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//Chip_SetupXtalClocking();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Chip_SetupIrcClocking();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Set default system tick divder to 1 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_Clock_SetSysTickClockDiv(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Then please build the lpc_board project again.&lt;/P&gt;&lt;P&gt;Now, please try it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 07:12:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/862999#M34393</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-01-10T07:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: StartupCode LPC1517 random line issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863000#M34394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the same code for changing clock setting. But sometimes the SCT interrupt wont tick. UART is now not working perfectly.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 19:00:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863000#M34394</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2019-01-11T19:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: StartupCode LPC1517 random line issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863001#M34395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The IRC has been called in main program using &lt;STRONG&gt;Chip_SetupIrcClocking();&lt;/STRONG&gt;. Can it become an issue or should it be called before the &lt;STRONG&gt;_main()&lt;/STRONG&gt; code in &lt;STRONG&gt;sysinit.c&lt;/STRONG&gt; file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 19:13:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863001#M34395</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2019-01-11T19:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: StartupCode LPC1517 random line issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863002#M34396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76839i83E2EEC8EF5CE169/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;This is how I initialized internal clocking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's an issue in Internal clock interrupt. The interrupt wont work always. I am using a delay_count++ in Handler. But sometimes this delay_count wont increment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Debugging and putting a breakpoint in Handler does not have any effect, which means the interrupt is not working. This is my timer initialization snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Athmesh Nandakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 19:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863002#M34396</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2019-01-11T19:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: StartupCode LPC1517 random line issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863003#M34397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ATHMESH NANDAKUMAR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please check your cr_startup__lpc15xx.c file, ResetISR(void) function, this is the startup entry point after reset:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76872iBE8BB2C3C01F8B5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Enter SystemInit():&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76904i3C34D36E6EEF5281/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can find on my side, it calls Board_systemInit();&lt;/P&gt;&lt;P&gt;You also need to check your code, you are calling chip_systemInit or the Board_SystemInit?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76949iBF0C106B66EA2778/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you test the official lpcopen code on your side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 02:17:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863003#M34397</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-01-14T02:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: StartupCode LPC1517 random line issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863004#M34398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 05:38:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/StartupCode-LPC1517-random-line-issue/m-p/863004#M34398</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2019-01-15T05:38:56Z</dc:date>
    </item>
  </channel>
</rss>

