<?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>MQX Software SolutionsのトピックRe: K70F150M MQX 4.2 example project for clock configs ?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604220#M16721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the uTasker project I change&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define KINETIS_MAX_SPEED&amp;nbsp;&amp;nbsp;&amp;nbsp; 120000000&lt;/STRONG&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;STRONG&gt;#define KINETIS_MAX_SPEED&amp;nbsp;&amp;nbsp;&amp;nbsp; 150000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to move from K70F120 to K70F150.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only effect is to allow faster DDR, Bus and core speeds but it still runs at 120MHz unless I also change the PLL clock multiplier to 1.25x higher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I conclude that you should be able to use the exact same example project and just increase the multiplier (if anything complains, just comment out the checks). If you want to make a project explicitly for this you may have to copy a lot of files and adjust a couple of lines in some headers (I experimented doing this in KSDK once and it required 50MBytes of new files in order to achieve a couple of lines of code change for a specific processor and took hours.....).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 12:41:46 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2016-12-13T12:41:46Z</dc:date>
    <item>
      <title>K70F150M MQX 4.2 example project for clock configs ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604219#M16720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva, sans-serif; font-size: 13px;"&gt;I am using MQX 4.2.0.2 with IAR EWARM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva, sans-serif; font-size: 13px;"&gt;I have got K70f120M tower kit and example project running without any issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva, sans-serif; font-size: 13px;"&gt;Now, I want to create a project for K70F&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;150&lt;/STRONG&gt;&lt;/SPAN&gt;M processor, how do I even start, which files need to be changed from K70F120M to get to K70F&lt;STRONG style="color: #ff0000;"&gt;150&lt;/STRONG&gt;M.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva, sans-serif; font-size: 13px;"&gt;Has anyone done this before, or can any one point me to the files that need to be changed. MQX 4.2.0.2 has no example to do so.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva, sans-serif; font-size: 13px;"&gt;To me it sounds like bsp_cm.h needs to have a correct clock frequency and then user_config.h needs to have correct MQX_CPU define.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva, sans-serif; font-size: 13px;"&gt;Is that all ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva, sans-serif; font-size: 13px;"&gt;Can anyone guide me &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mjbcswitzerland"&gt;mjbcswitzerland&lt;/A&gt;‌, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/DavidS"&gt;DavidS&lt;/A&gt;‌, &lt;A _jive_internal="true" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/MeganHansen"&gt;MeganHansen&lt;/A&gt;, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/RadekS"&gt;RadekS&lt;/A&gt;, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/macl"&gt;macl&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva, sans-serif; font-size: 13px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva, sans-serif; font-size: 13px;"&gt;Nitin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva, sans-serif; font-size: 13px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 01:42:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604219#M16720</guid>
      <dc:creator>nitinharish</dc:creator>
      <dc:date>2016-12-13T01:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: K70F150M MQX 4.2 example project for clock configs ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604220#M16721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the uTasker project I change&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define KINETIS_MAX_SPEED&amp;nbsp;&amp;nbsp;&amp;nbsp; 120000000&lt;/STRONG&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;STRONG&gt;#define KINETIS_MAX_SPEED&amp;nbsp;&amp;nbsp;&amp;nbsp; 150000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to move from K70F120 to K70F150.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only effect is to allow faster DDR, Bus and core speeds but it still runs at 120MHz unless I also change the PLL clock multiplier to 1.25x higher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I conclude that you should be able to use the exact same example project and just increase the multiplier (if anything complains, just comment out the checks). If you want to make a project explicitly for this you may have to copy a lot of files and adjust a couple of lines in some headers (I experimented doing this in KSDK once and it required 50MBytes of new files in order to achieve a couple of lines of code change for a specific processor and took hours.....).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:41:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604220#M16721</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-12-13T12:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: K70F150M MQX 4.2 example project for clock configs ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604221#M16722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to follow the bellow steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Please check the bsp_cm.c file located at the path: C:\Freescale\Freescale_MQX_4_2\mqx\source\bsp\name_board&lt;/LI&gt;&lt;LI&gt;Localize the void _bsp_initialize_hardware(void) function&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Modify this function according your needs.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition please check the “How-to Change Default Clock Settings in Kinetis BSPs” document attached to this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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: 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>Tue, 13 Dec 2016 14:29:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604221#M16722</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-12-13T14:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: K70F150M MQX 4.2 example project for clock configs ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604222#M16723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;It sounds like MQX 4.2.0.2 half heartedly supports MK70FX512VMJ150 device, because once I changed MQX_CPU from&amp;nbsp;PSP_CPU_MK70F120M to&amp;nbsp;PSP_CPU_MK70F150M, BSP does not even find "MK70F15.h" from kinetis.h, luckily, I had processor expert so copied the file manually to "\mqx\source\psp\cortex_m\cpu"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;And now, I have a problem compiling BSP because in fsl_flexcan_driver.c is only defining bit_rate_table for&amp;nbsp;PSP_CPU_MK70F120M, &amp;nbsp;PSP_CPU_MK65F180M, PSP_CPU_MK60DN512Z and &amp;nbsp;PSP_MQX_CPU_IS_VYBRID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;I am NOT sure if I add PSP_CPU_MK70F150M to the group&amp;nbsp;PSP_CPU_MK70F120M, it is fine or NOT ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;Here is the current table (in fsl_flexcan_driver.c):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 15px; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;//! The following table is based on the assumption that BSP_CANPE_CLOCK is defined. The CAN bit
//! timing parameters are calculated by using the method outlined in AN1798, section 4.1.
//! A maximum time for PROP_SEG will be used, the remaining TQ will be split equally between PSEG1
//! and PSEG2, if PSEG2 &amp;gt;=2.
//! RJW is set to the minimum of 4 or PSEG1.
//! The table contains bit_rate (Hz), propseg, pseg1, pseg2, pre_divider, and rjw.
#if (MQX_CPU == &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;PSP_CPU_MK70F120M&lt;/STRONG&gt;&lt;/SPAN&gt;) || (MQX_CPU == &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;PSP_CPU_MK65F180M&lt;/STRONG&gt;&lt;/SPAN&gt;)
const flexcan_bitrate_table_t bit_rate_table[] = {
 { 125000, 6, 7, 7, 19, 3}, /* 125 kHz */
 { 250000, 6, 7, 7, 9, 3}, /* 250 kHz */
 { 500000, 6, 7, 7, 4, 3}, /* 500 kHz */
 { 750000, 6, 5, 5, 3, 3}, /* 750 kHz */
 {1000000, 6, 5, 5, 2, 3}, /* 1 MHz */
};
#elif (MQX_CPU == &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;PSP_CPU_MK60DN512Z&lt;/STRONG&gt;&lt;/SPAN&gt;)
const flexcan_bitrate_table_t bit_rate_table[] = {
 { 125000, 6, 7, 7, 15, 3}, /* 125 kHz */
 { 250000, 6, 7, 7, 7, 3}, /* 250 kHz */
 { 500000, 6, 7, 7, 3, 3}, /* 500 kHz */
 { 750000, 6, 3, 3, 3, 3}, /* 750 kHz */
 {1000000, 6, 7, 7, 1, 3}, /* 1 MHz */
};
#elif &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;PSP_MQX_CPU_IS_VYBRID&lt;/STRONG&gt;&lt;/SPAN&gt;
const flexcan_bitrate_table_t bit_rate_table[] = {
 { 125000, 6, 7, 7, 21, 3}, /* 125 kHz on 66 MHz IPG*/
 { 250000, 6, 7, 7, 10, 2}, /* 250 kHz */
 { 500000, 6, 6, 6, 5, 3}, /* 500 kHz */
 {1000000, 3, 2, 2, 5, 1}, /* 1 MHz */
};
#endif&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;Let me know, if I am on the wrong track here ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 19:14:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604222#M16723</guid>
      <dc:creator>nitinharish</dc:creator>
      <dc:date>2016-12-14T19:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: K70F150M MQX 4.2 example project for clock configs ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604223#M16724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;I went ahead and made the code change in fsl_flexcan_driver.c as following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;//! The following table is based on the assumption that BSP_CANPE_CLOCK is defined. The CAN bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;//! timing parameters are calculated by using the method outlined in AN1798, section 4.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;//! A maximum time for PROP_SEG will be used, the remaining TQ will be split equally between PSEG1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;//! and PSEG2, if PSEG2 &amp;gt;=2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;//! RJW is set to the minimum of 4 or PSEG1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;//! The table contains bit_rate (Hz), propseg, pseg1, pseg2, pre_divider, and rjw.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;#if (MQX_CPU == PSP_CPU_MK70F120M) || (MQX_CPU == PSP_CPU_MK65F180M) &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;|| (MQX_CPU == PSP_CPU_MK70F150M&lt;/STRONG&gt;&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;const flexcan_bitrate_table_t bit_rate_table[] = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 125000, 6, 7, 7, 19, 3}, /* 125 kHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 250000, 6, 7, 7, 9, 3}, /* 250 kHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 500000, 6, 7, 7, 4, 3}, /* 500 kHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 750000, 6, 5, 5, 3, 3}, /* 750 kHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; {1000000, 6, 5, 5, 2, 3}, /* 1 MHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;#elif (MQX_CPU == PSP_CPU_MK60DN512Z)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;const flexcan_bitrate_table_t bit_rate_table[] = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 125000, 6, 7, 7, 15, 3}, /* 125 kHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 250000, 6, 7, 7, 7, 3}, /* 250 kHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 500000, 6, 7, 7, 3, 3}, /* 500 kHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 750000, 6, 3, 3, 3, 3}, /* 750 kHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; {1000000, 6, 7, 7, 1, 3}, /* 1 MHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;#elif PSP_MQX_CPU_IS_VYBRID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;const flexcan_bitrate_table_t bit_rate_table[] = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 125000, 6, 7, 7, 21, 3}, /* 125 kHz on 66 MHz IPG*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 250000, 6, 7, 7, 10, 2}, /* 250 kHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; { 500000, 6, 6, 6, 5, 3}, /* 500 kHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt; {1000000, 3, 2, 2, 5, 1}, /* 1 MHz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;But now, I am facing a very weird issue:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;When I try to run MQX example "nandflash_demo.c", it works fine on the tower kit TWR-K70 with TWR-SER card attached to it. but if I remove TWR-SER card from my tower, the code just stalls inside "bsp_cm.c", at the following highlighted location:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;void __pe_initialize_hardware(void)&lt;BR /&gt;{&lt;BR /&gt; _bsp_watchdog_disable();&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;#if MQX_ENABLE_LOW_POWER&lt;BR /&gt; /* Reset from LLWU wake up source */&lt;BR /&gt; if (_lpm_get_reset_source() == MQX_RESET_SOURCE_LLWU)&lt;BR /&gt; {&lt;BR /&gt; PMC_REGSC |= PMC_REGSC_ACKISO_MASK;&lt;BR /&gt; }&lt;BR /&gt;#endif&lt;BR /&gt; /*** !!! Here you can place your own code before PE initialization using property "User code before PE initialization" on the build options tab. !!! ***/&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;/*** ### MK70FN1M0VMJ12 "Cpu" init code ... ***/&lt;BR /&gt; /*** PE initialization code after reset ***/&lt;BR /&gt; /* SIM_SCGC6: RTC=1 */&lt;BR /&gt; SIM_SCGC6 |= (uint32_t)0x20000000UL;&lt;BR /&gt; if ((RTC_CR &amp;amp; RTC_CR_OSCE_MASK) == 0u) { /* Only if the OSCILLATOR is not already enabled */&lt;BR /&gt; /* RTC_CR: SC2P=0,SC4P=0,SC8P=0,SC16P=0 */&lt;BR /&gt; RTC_CR &amp;amp;= (uint32_t)~0x3C00UL;&lt;BR /&gt; /* RTC_CR: OSCE=1 */&lt;BR /&gt; RTC_CR |= (uint32_t)0x0100UL;&lt;BR /&gt; /* RTC_CR: CLKO=0 */&lt;BR /&gt; RTC_CR &amp;amp;= (uint32_t)~0x0200UL;&lt;BR /&gt; }&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;/* System clock initialization */&lt;BR /&gt; /* SIM_SCGC5: PORTE=1,PORTC=1,PORTA=1 */&lt;BR /&gt; SIM_SCGC5 |= (uint32_t)0x2A00UL; /* Enable clock gate for ports to enable pin routing */&lt;BR /&gt; if ( *((uint8_t*) 0x03FFU) != 0xFFU) {&lt;BR /&gt; MCG_C3 = *((uint8_t*) 0x03FFU);&lt;BR /&gt; MCG_C4 = (MCG_C4 &amp;amp; 0xE0U) | ((*((uint8_t*) 0x03FEU)) &amp;amp; 0x1FU);&lt;BR /&gt; }&lt;BR /&gt; /* SIM_CLKDIV1: OUTDIV1=0,OUTDIV2=1,OUTDIV3=2,OUTDIV4=5,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0 */&lt;BR /&gt; SIM_CLKDIV1 = (uint32_t)0x01250000UL; /* Update system prescalers */&lt;BR /&gt; /* SIM_CLKDIV4: NFCDIV=7 */&lt;BR /&gt; SIM_CLKDIV4 |= SIM_CLKDIV4_NFCDIV(7);&lt;BR /&gt; /* SIM_SOPT2: PLLFLLSEL=1 */&lt;BR /&gt; SIM_SOPT2 = (uint32_t)((SIM_SOPT2 &amp;amp; (uint32_t)~0x00020000UL) | (uint32_t)0x00010000UL); /* Select PLL 0 as a clock source for various peripherals */&lt;BR /&gt; /* SIM_SOPT1: OSC32KSEL=1 */&lt;BR /&gt; SIM_SOPT1 |= (uint32_t)0x00080000UL; /* RTC oscillator drives 32 kHz clock for various peripherals */&lt;BR /&gt; /* SIM_SCGC1: OSC1=1 */&lt;BR /&gt; SIM_SCGC1 |= (uint32_t)0x20UL;&lt;BR /&gt; /* PORTA_PCR18: ISF=0,MUX=0 */&lt;BR /&gt; PORTA_PCR18 &amp;amp;= (uint32_t)~0x01000700UL;&lt;BR /&gt; /* PORTE_PCR24: ISF=0,MUX=0 */&lt;BR /&gt; PORTE_PCR24 &amp;amp;= (uint32_t)~0x01000700UL;&lt;BR /&gt; /* PORTE_PCR25: ISF=0,MUX=0 */&lt;BR /&gt; PORTE_PCR25 &amp;amp;= (uint32_t)~0x01000700UL;&lt;BR /&gt; /* Switch to FBE Mode */&lt;BR /&gt; /* OSC0_CR: ERCLKEN=1,??=0,EREFSTEN=0,??=0,SC2P=0,SC4P=0,SC8P=0,SC16P=0 */&lt;BR /&gt; OSC0_CR = (uint8_t)0x80U;&lt;BR /&gt; /* OSC1_CR: ERCLKEN=1,??=0,EREFSTEN=0,??=0,SC2P=0,SC4P=0,SC8P=0,SC16P=0 */&lt;BR /&gt; OSC1_CR = (uint8_t)0x80U;&lt;BR /&gt; /* MCG_C7: OSCSEL=0 */&lt;BR /&gt; MCG_C7 &amp;amp;= (uint8_t)~(uint8_t)0x01U;&lt;BR /&gt; /* MCG_C10: LOCRE2=0,??=0,RANGE1=2,HGO1=1,EREFS1=1,??=0,??=0 */&lt;BR /&gt; MCG_C10 = (uint8_t)0x2CU;&lt;BR /&gt; /* MCG_C2: LOCRE0=0,??=0,RANGE0=2,HGO0=0,EREFS0=0,LP=0,IRCS=1 */&lt;BR /&gt; MCG_C2 = (uint8_t)0x21U;&lt;BR /&gt; /* MCG_C1: CLKS=2,FRDIV=5,IREFS=0,IRCLKEN=0,IREFSTEN=0 */&lt;BR /&gt; MCG_C1 = (uint8_t)0xA8U;&lt;BR /&gt; /* MCG_C4: DMX32=0,DRST_DRS=0 */&lt;BR /&gt; MCG_C4 &amp;amp;= (uint8_t)~(uint8_t)0xE0U;&lt;BR /&gt; /* MCG_C5: PLLREFSEL0=0,PLLCLKEN0=0,PLLSTEN0=0,??=0,??=0,PRDIV0=4 */&lt;BR /&gt; MCG_C5 = (uint8_t)0x04U;&lt;BR /&gt; /* MCG_C6: LOLIE0=0,PLLS=0,CME0=0,VDIV0=8 */&lt;BR /&gt; MCG_C6 = (uint8_t)0x08U;&lt;BR /&gt; /* MCG_C11: PLLREFSEL1=0,PLLCLKEN1=0,PLLSTEN1=0,PLLCS=0,??=0,PRDIV1=3 */&lt;BR /&gt; MCG_C11 = (uint8_t)0x03U;&lt;BR /&gt; /* MCG_C11: PLLCLKEN1=1 */&lt;BR /&gt; MCG_C11 |= (uint8_t)0x40U; /* Enable the PLL */&lt;BR /&gt; /* MCG_C12: LOLIE1=0,??=0,CME2=0,VDIV1=8 */&lt;BR /&gt; MCG_C12 = (uint8_t)0x08U;&lt;BR /&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;while((MCG_S &amp;amp; MCG_S_IREFST_MASK) != 0x00U) { /* Check that the source of the FLL reference clock is the external reference clock. */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt; }&lt;BR /&gt; while((MCG_S &amp;amp; 0x0CU) != 0x08U) { /* Wait until external reference clock is selected as MCG output */&lt;BR /&gt; }&lt;BR /&gt; /* Switch to PBE Mode */&lt;BR /&gt; /* MCG_C6: LOLIE0=0,PLLS=1,CME0=0,VDIV0=8 */&lt;BR /&gt; MCG_C6 = (uint8_t)0x48U;&lt;BR /&gt; while((MCG_S &amp;amp; 0x0CU) != 0x08U) { /* Wait until external reference clock is selected as MCG output */&lt;BR /&gt; }&lt;BR /&gt; while((MCG_S &amp;amp; MCG_S_LOCK0_MASK) == 0x00U) { /* Wait until PLL locked */&lt;BR /&gt; }&lt;BR /&gt; /* Switch to PEE Mode */&lt;BR /&gt; /* MCG_C1: CLKS=0,FRDIV=5,IREFS=0,IRCLKEN=0,IREFSTEN=0 */&lt;BR /&gt; MCG_C1 = (uint8_t)0x28U;&lt;BR /&gt; while((MCG_S &amp;amp; 0x0CU) != 0x0CU) { /* Wait until output of the PLL is selected */&lt;BR /&gt; }&lt;BR /&gt; /* MCG_C6: CME0=1 */&lt;BR /&gt; MCG_C6 |= (uint8_t)0x20U; /* Enable the clock monitor */&lt;BR /&gt; /*** End of PE initialization code after reset ***/&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;/*** !!! Here you can place your own code after PE initialization using property "User code after PE initialization" on the build options tab. !!! ***/&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;Is TWR-SER supplying some clock/oscillator input to TWR-K70 ?&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mjbcswitzerland"&gt;mjbcswitzerland&lt;/A&gt;‌&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/DavidS"&gt;DavidS&lt;/A&gt;‌ &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/macl"&gt;macl&lt;/A&gt;&amp;nbsp;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 00:50:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604223#M16724</guid>
      <dc:creator>nitinharish</dc:creator>
      <dc:date>2016-12-15T00:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: K70F150M MQX 4.2 example project for clock configs ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604224#M16725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva, sans-serif; color: #0000ff;"&gt;Never mind, I figured out that Jumper J18 on Rev C TWR-K70 board if connected feeds 50MHz clock input to MCU from TWR-SER card, if J18 is OPEN, onboard 50MHz clock feeds the MCU.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 01:05:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K70F150M-MQX-4-2-example-project-for-clock-configs/m-p/604224#M16725</guid>
      <dc:creator>nitinharish</dc:creator>
      <dc:date>2016-12-15T01:05:17Z</dc:date>
    </item>
  </channel>
</rss>

