<?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: LPC55S06_EVK Project crashing on CTIMER_init() in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/LPC55S06-EVK-Project-crashing-on-CTIMER-init/m-p/1328363#M4301</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;dougpaulsen,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You need add&amp;nbsp; BOARD_BootClockFRO12M(); as below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;int main(void) {&lt;/P&gt;
&lt;P&gt;/* Init board hardware. */&lt;BR /&gt;BOARD_InitBootPins();&lt;BR /&gt;BOARD_InitBootClocks();&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;BOARD_BootClockFRO12M();&lt;/FONT&gt;&lt;BR /&gt;BOARD_InitBootPeripherals();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 08:04:50 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2021-08-24T08:04:50Z</dc:date>
    <item>
      <title>LPC55S06_EVK Project crashing on CTIMER_init()</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC55S06-EVK-Project-crashing-on-CTIMER-init/m-p/1327997#M4299</link>
      <description>&lt;P&gt;Hey:&lt;/P&gt;&lt;P&gt;I am really hoping someone can show me the error in my ways here, but in the meantime a quite elementary MCUXpresso 11.3 generated project for the LPC55S06_EVK board crashes when executing CTIMER_init().&lt;/P&gt;&lt;P&gt;A stripped down, just-the-basics project is attached.&amp;nbsp; I have started with a default '55S06 project and used the clock tool to enable the CTIMER2 clock and the peripheral tool to enable CTIMER2 (no pins used).&amp;nbsp; In this example (and every other combo I've tried), program execution will go into deep space in the tool generated CTIMER_Init() on this line:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/* Setup the timer prescale value */&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;base-&amp;gt;PR = CTIMER_PR_PRVAL(config-&amp;gt;prescale);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This same code generated for the LPC55S16_EVK board works, but not here for the LPC55S06_EVK.&amp;nbsp; Of course, your example project&amp;nbsp;&lt;EM&gt;lpcxpress55s06_ctimer_match_interrupt_example&lt;/EM&gt; works but find it frustrating what while you promote the pin, clock, and peripheral tools you studiously avoid using them in your examples.&amp;nbsp; I do find in your example &lt;EM&gt;base-&amp;gt;PR&lt;/EM&gt; is assigned 0 whereas the peripheral tool prohibits that value.&lt;/P&gt;&lt;P&gt;I have spent considerable time ever more my simplifying my sample and I think it's about a simple as it can get, yet the code refuses to execute.&amp;nbsp; I could, of course, adapt your sample and use it in the short term, but I think skating over the issue will come back to haunt the project at a later date.&lt;/P&gt;&lt;P&gt;Thanks for any insights!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp; When this code crashes, the only way I've found to de-brick my LPC55S06-EVK board is to use a J-Link as an external debugger and chip-erasing with J-Flash.&amp;nbsp; If anyone knows how to recover with LINK2, please share....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 20:30:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC55S06-EVK-Project-crashing-on-CTIMER-init/m-p/1327997#M4299</guid>
      <dc:creator>dougpaulsen</dc:creator>
      <dc:date>2021-08-23T20:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06_EVK Project crashing on CTIMER_init()</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC55S06-EVK-Project-crashing-on-CTIMER-init/m-p/1328363#M4301</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;dougpaulsen,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You need add&amp;nbsp; BOARD_BootClockFRO12M(); as below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;int main(void) {&lt;/P&gt;
&lt;P&gt;/* Init board hardware. */&lt;BR /&gt;BOARD_InitBootPins();&lt;BR /&gt;BOARD_InitBootClocks();&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;BOARD_BootClockFRO12M();&lt;/FONT&gt;&lt;BR /&gt;BOARD_InitBootPeripherals();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 08:04:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC55S06-EVK-Project-crashing-on-CTIMER-init/m-p/1328363#M4301</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-08-24T08:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06_EVK Project crashing on CTIMER_init()</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC55S06-EVK-Project-crashing-on-CTIMER-init/m-p/1328668#M4302</link>
      <description>&lt;P&gt;Alice:&lt;/P&gt;&lt;P&gt;Why, this is absolutely excellent and solves the problem.&amp;nbsp; My oversight, although in my defense I would point out that the MCUXpresso tools for a LPC55S16 project&amp;nbsp; (where heretofore I spent most of my time) creates the following void BOARD_InitBootClocks(void):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;void BOARD_InitBootClocks(void)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; BOARD_BootClockPLL150M();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In contrast, the MCUXpresso tools for a LPC55S06 project creates this rather less-that-helpful version of&amp;nbsp;BOARD_InitBootClocks():&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;void BOARD_InitBootClocks(void)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;That is, you've got to manually add your own clock initialization.&amp;nbsp; The LPC55S06 Clock tool didn't add it for you.&amp;nbsp; Surprise!&amp;nbsp; I suffered a classic case of target fixation, trying to understand what's wrong with the LPC55S06 CTimer peripheral and not investigating the rest of the system.&lt;/P&gt;&lt;P&gt;As I like to say: All's well that ends, and I can get on with things.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;doug&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 13:13:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC55S06-EVK-Project-crashing-on-CTIMER-init/m-p/1328668#M4302</guid>
      <dc:creator>dougpaulsen</dc:creator>
      <dc:date>2021-08-24T13:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06_EVK Project crashing on CTIMER_init()</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC55S06-EVK-Project-crashing-on-CTIMER-init/m-p/1803676#M5305</link>
      <description>The solution worked for me as well using what I needed, BOARD_BootClockFRO48M();</description>
      <pubDate>Wed, 07 Feb 2024 21:04:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC55S06-EVK-Project-crashing-on-CTIMER-init/m-p/1803676#M5305</guid>
      <dc:creator>Kratz</dc:creator>
      <dc:date>2024-02-07T21:04:51Z</dc:date>
    </item>
  </channel>
</rss>

