<?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: Default Debug mode SystemCoreClock frequency in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588337#M28089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brucesegal on Tue Mar 16 13:30:17 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;From the Code Red site (and I haven't tried this)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://http://support.code-red-tech.com/CodeRedWiki/SettingCrystal"&gt;http://support.code-red-tech.com/CodeRedWiki/SettingCrystal&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]Setting Crystal and PLL value for a target board[/B]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can tell the debug chain the crystal frequency of a target board, although there isn't a convenient UI for doing this (it will be fixed in a future update).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To set the crystal frequency, please do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run-&amp;gt;Open Debug Dialog&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select the debug configuration you wish to change&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Switch to the Debugger tab&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Press the Edit Scripts... button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;edit the line beginning with "target extended-remote" and at the end of the line, add -c(your crystal value in kHz)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Press the OK button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Press Apply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The defintion of the -c options is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-c&amp;nbsp; = Set crystal speed for chip (in kHz), and optionally PLL value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (e.g. -c2000 or -c8000,50000).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:13:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:13:47Z</dc:date>
    <item>
      <title>Default Debug mode SystemCoreClock frequency</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588336#M28088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bhallett on Tue Mar 16 10:24:14 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to change the assumed 72Mhz SystemCoreClock frequency that is used when running LPCXpresso in debug mode ? I want to change this to 12Mhz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Barry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588336#M28088</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Default Debug mode SystemCoreClock frequency</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588337#M28089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brucesegal on Tue Mar 16 13:30:17 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;From the Code Red site (and I haven't tried this)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://http://support.code-red-tech.com/CodeRedWiki/SettingCrystal"&gt;http://support.code-red-tech.com/CodeRedWiki/SettingCrystal&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]Setting Crystal and PLL value for a target board[/B]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can tell the debug chain the crystal frequency of a target board, although there isn't a convenient UI for doing this (it will be fixed in a future update).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To set the crystal frequency, please do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run-&amp;gt;Open Debug Dialog&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select the debug configuration you wish to change&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Switch to the Debugger tab&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Press the Edit Scripts... button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;edit the line beginning with "target extended-remote" and at the end of the line, add -c(your crystal value in kHz)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Press the OK button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Press Apply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The defintion of the -c options is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-c&amp;nbsp; = Set crystal speed for chip (in kHz), and optionally PLL value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (e.g. -c2000 or -c8000,50000).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588337#M28089</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Default Debug mode SystemCoreClock frequency</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588338#M28090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kendwyer on Tue Mar 16 19:34:36 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You could just let the chip run off the IRC (12MHz), to do this you'll have to make changes to the system_LPC11xx.c file in the CMSIS library code that comes with the examples.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588338#M28090</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Default Debug mode SystemCoreClock frequency</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588339#M28091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bhallett on Wed Mar 17 01:46:57 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The "target extended-remote" line is currently set as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;target extended-remote | ${gdb.stub} -g -mi -${debug.level:2} ${-c+speed:$null} ${-p+package:$null} ${-e+emulator:$null} ${vector.catch?-vc:}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to put "-c12000" on the end but there is no change when I read the "SystemCoreClock" setting during a debug session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have even changed ${-c+speed:$null} to ${-c+speed:12000} and there does not seem to be any change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Barry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588339#M28091</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Default Debug mode SystemCoreClock frequency</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588340#M28092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Wed Mar 17 02:52:57 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Barry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The link from brucesegal is a red herring. As per the post from kendwyer, the clock speed that the MCU runs your code at is set by the initialisation code contained within the CMSISv1p30_LPC13xx library project (assuming of course that you are linking with CMSIS).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus if you want to change from the default setting of 72MHz, you need to look at the #define's and the SystemInit() code in system_LPC13xx.c together with the LPC13 user manual, and modfiy as appropriate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should note that changing the code within the CMSIS library project will cause all projects in that workspace to use the modified code. If this is problem for you, then you may want to create a copy of the CMSIS project and modify the copy [making sure you update the links from your application project], or to copy the CMSIS files into the application project you want to use the modified clock speed in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588340#M28092</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Default Debug mode SystemCoreClock frequency</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588341#M28093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brucesegal on Wed Mar 17 08:41:55 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about that I misunderstood the question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Default-Debug-mode-SystemCoreClock-frequency/m-p/588341#M28093</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:50Z</dc:date>
    </item>
  </channel>
</rss>

