<?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: What should the LPC84x FLASHTIM register be set to? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1983527#M57170</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, as far as I know I can't find that information anywhere in the NXP　documentation.&lt;/P&gt;&lt;P&gt;In other words, So does that mean the flash access time needs to be 24MHz or less as a chip specification?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;George&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 06:53:41 GMT</pubDate>
    <dc:creator>george</dc:creator>
    <dc:date>2024-10-29T06:53:41Z</dc:date>
    <item>
      <title>What should the LPC84x FLASHTIM register be set to?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1982495#M57156</link>
      <description>&lt;P&gt;Hello Team,&lt;BR /&gt;&lt;BR /&gt;My customers are using LPC845 and they frequently encounter a HardFault while debugging.&lt;/P&gt;&lt;P&gt;Their painstaking analysis revealed that it was related to the FLASHTIM register.&lt;BR /&gt;They are using a 30MHz system clock, in which case setting FLASHTIM=1 will prevent the HardFault.&lt;/P&gt;&lt;P&gt;I found similar posts in the community, but the Flash access time specifications are not clear here.&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC8xx-Flash-access-time-aka-setting-FLASHTIM/m-p/1186229" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/LPC8xx-Flash-access-time-aka-setting-FLASHTIM/m-p/1186229&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In other LPC series it is clearly stated in UM.&lt;BR /&gt;Ex LPC111x :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="george_3-1730045412297.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/307138i70B778C6932CFC90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="george_3-1730045412297.png" alt="george_3-1730045412297.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ex LPC546xx :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="george_4-1730045752630.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/307139iF43940C2822D000F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="george_4-1730045752630.png" alt="george_4-1730045752630.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, this point is not clearly stated in the LPC84x UM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="george_5-1730045840042.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/307140iD3559C0CD8E27ED3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="george_5-1730045840042.png" alt="george_5-1730045840042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please clarify the specifications related to FLASHTIM so that customers can freely handle the system clock.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;George&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 16:23:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1982495#M57156</guid>
      <dc:creator>george</dc:creator>
      <dc:date>2024-10-27T16:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: What should the LPC84x FLASHTIM register be set to?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1983446#M57168</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suppose the SDK team has addressed the issue.&lt;/P&gt;
&lt;P&gt;Pls download SDK package from the website:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/en" target="_blank"&gt;https://mcuxpresso.nxp.com/en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The SDK version has updated to 2.16.000, which has added a function void CLOCK_SetFLASHAccessCyclesForFreq(uint32_t iFreq) to solve the issue.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1730172367562.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/307380i822AACED26787026/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1730172367562.png" alt="xiangjun_rong_0-1730172367562.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*! brief Set the flash wait states for the input freuqency.&lt;BR /&gt;* param iFreq : Input frequency&lt;BR /&gt;*/&lt;BR /&gt;void CLOCK_SetFLASHAccessCyclesForFreq(uint32_t iFreq)&lt;BR /&gt;{&lt;BR /&gt;uint32_t num_wait_states;&lt;BR /&gt;if (iFreq &amp;lt;= 24000000UL)&lt;BR /&gt;{&lt;BR /&gt;/* [0 - 24 MHz] */&lt;BR /&gt;num_wait_states = 0UL;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;/* Above 24 MHz */&lt;BR /&gt;num_wait_states = 1UL;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;FLASH_CTRL-&amp;gt;FLASHCFG =&lt;BR /&gt;((FLASH_CTRL-&amp;gt;FLASHCFG &amp;amp; ~FLASH_CTRL_FLASHCFG_FLASHTIM_MASK) | FLASH_CTRL_FLASHCFG_FLASHTIM(num_wait_states));&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when the core frequency is less than 24MHz, 1 clock cycle is added. when the core frequency is above 24MHz, 2 clock cycle is added.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the user manual update, it requires time.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 03:29:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1983446#M57168</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-10-29T03:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: What should the LPC84x FLASHTIM register be set to?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1983527#M57170</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, as far as I know I can't find that information anywhere in the NXP　documentation.&lt;/P&gt;&lt;P&gt;In other words, So does that mean the flash access time needs to be 24MHz or less as a chip specification?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;George&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 06:53:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1983527#M57170</guid>
      <dc:creator>george</dc:creator>
      <dc:date>2024-10-29T06:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: What should the LPC84x FLASHTIM register be set to?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1983708#M57173</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Unfortunately, the section&amp;nbsp; 6.4.1 Flash configuration register in UM11029.pdf has not any update till now.&lt;/P&gt;
&lt;P&gt;But the SDK package adds a function to set up the FLASHTIM bits in FLASHCFG reg.&lt;/P&gt;
&lt;P&gt;The core frequency of LPC84x can reach up to 30MHz, if the core frequency is less than 24Mhz, you set the FLASHTIM bits as 0, which means 1 clock cycle delay. if the core frequency is equal or greater than 24Mhz and less than 30Mhz, you set the FLASHTIM bits as 1, which means 2 clock cycle delay.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The void CLOCK_SetFLASHAccessCyclesForFreq(uint32_t iFreq) api function input variable is the actual core frequency, it set up the FLASHTIM bits based on the core frequency.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1730195583028.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/307442i892DF81F149151B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1730195583028.png" alt="xiangjun_rong_0-1730195583028.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 10:00:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1983708#M57173</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-10-29T10:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: What should the LPC84x FLASHTIM register be set to?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1985470#M57191</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There is no sample code that uses the&amp;nbsp;&lt;SPAN&gt;CLOCK_SetFLASHAccessCyclesForFreq()&lt;/SPAN&gt; in the latest SDK, so few users will notice its existence.&lt;/P&gt;&lt;P&gt;In any case, our question is answered.&lt;BR /&gt;Thank you for your detailed answer.&lt;/P&gt;&lt;P&gt;BR,&lt;BR /&gt;George&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 09:44:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-should-the-LPC84x-FLASHTIM-register-be-set-to/m-p/1985470#M57191</guid>
      <dc:creator>george</dc:creator>
      <dc:date>2024-10-31T09:44:43Z</dc:date>
    </item>
  </channel>
</rss>

