<?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: 15: Target error from Register access in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/15-Target-error-from-Register-access/m-p/897734#M36032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the attached initialization code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your external osc is not workable, you can't even debug code. for example, during clock initialization, when you execute/debug code of switch MAIN_CLK to&amp;nbsp; to system PLL, debug fails and loses connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check clock setting, you can set CLKOUTSELA register to orient clk_in or main_clk or pll_clk to CLKOUT pin, measure this pin with scope. see if the output is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if your external OSC configuration is wrong, normally the code will be stuck there during running; if you are doing debug, you will see debug lose connection during clock configuration code. The popped up error message such as " Target error from register access",etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will not switch to&amp;nbsp;internal FRO automatically by MCU when&amp;nbsp;external crystal osc is failed.&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;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2019 15:54:49 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2019-05-16T15:54:49Z</dc:date>
    <item>
      <title>15: Target error from Register access</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/15-Target-error-from-Register-access/m-p/897733#M36031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I am using LPC54608 development board (OM13092) for evaluation. I am trying to switch the main clock to external clock but i am facing the error "15: Target error from Register access" when connecting to the debug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I have attached code and the error message . Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 11:54:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/15-Target-error-from-Register-access/m-p/897733#M36031</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2019-05-16T11:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: 15: Target error from Register access</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/15-Target-error-from-Register-access/m-p/897734#M36032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the attached initialization code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your external osc is not workable, you can't even debug code. for example, during clock initialization, when you execute/debug code of switch MAIN_CLK to&amp;nbsp; to system PLL, debug fails and loses connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check clock setting, you can set CLKOUTSELA register to orient clk_in or main_clk or pll_clk to CLKOUT pin, measure this pin with scope. see if the output is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if your external OSC configuration is wrong, normally the code will be stuck there during running; if you are doing debug, you will see debug lose connection during clock configuration code. The popped up error message such as " Target error from register access",etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will not switch to&amp;nbsp;internal FRO automatically by MCU when&amp;nbsp;external crystal osc is failed.&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;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 15:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/15-Target-error-from-Register-access/m-p/897734#M36032</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-05-16T15:54:49Z</dc:date>
    </item>
  </channel>
</rss>

