<?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>Kinetis Software Development KitのトピックRe: KSDK example &amp;quot;hello world&amp;quot; for MK22FX512VLH12</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494195#M4532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to display on the console when I set the console baudrate at double the baudrate of the µC (&lt;/P&gt;&lt;H1&gt;MK22FX512VLH12)&lt;/H1&gt;&lt;P&gt;. Maybe I need to change the system clock on the µC. Can someone help me with setting the system clock as I am not able to find it on KSDK 2.0. When I am using the Processor Expert, it's easier to set the processor clock. Thanks,&lt;BR /&gt;Nakul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2016 09:23:10 GMT</pubDate>
    <dc:creator>nakulyadur</dc:creator>
    <dc:date>2016-04-11T09:23:10Z</dc:date>
    <item>
      <title>KSDK example "hello world" for MK22FX512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494194#M4531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using KSDK 2.0, SDK_2.0_MK22FX512xxx12 for my µC MK22FX512VLH12. I am using the demo example "hello world" provided and trying to display the "hello world" on the Console (PuTTY) but all I am getting are some junk values on the console. &lt;BR /&gt;The example is from TWR-K21F120M but I was told it is compatible with MK22FX512VLH12. I have changed the UART port in the code to use that from MK22FX512VLH12. I am using PORT E with PCR0 and PCR1. I have set both the Baudrates to 115200 and no parity, 1 stop bit. I am using P&amp;amp;E Multilink Universal for debugging. Since I am getting junk values on the console, I think there is a UART connection between the µC and the console. Can someone please help me with this? thanks,&lt;/P&gt;&lt;P&gt;Nakul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 06:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494194#M4531</guid>
      <dc:creator>nakulyadur</dc:creator>
      <dc:date>2016-04-11T06:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK example "hello world" for MK22FX512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494195#M4532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to display on the console when I set the console baudrate at double the baudrate of the µC (&lt;/P&gt;&lt;H1&gt;MK22FX512VLH12)&lt;/H1&gt;&lt;P&gt;. Maybe I need to change the system clock on the µC. Can someone help me with setting the system clock as I am not able to find it on KSDK 2.0. When I am using the Processor Expert, it's easier to set the processor clock. Thanks,&lt;BR /&gt;Nakul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 09:23:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494195#M4532</guid>
      <dc:creator>nakulyadur</dc:creator>
      <dc:date>2016-04-11T09:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK example "hello world" for MK22FX512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494196#M4533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nakul,&lt;/P&gt;&lt;P&gt;I believe you are seeing correct results for the following reason.&lt;/P&gt;&lt;P&gt;The TWR-K21F120M tower board is setup to use UART5 for the hello_world example.&lt;/P&gt;&lt;P&gt;For your device you have setup to use UART1.&lt;/P&gt;&lt;P&gt;If you look at the reference manual chapter 5 Clock Distribution in Table 5-2 (near bottom of table) the UART0 and UART1 use the System clock as it clock source and all remaining UART's use the Bus clock (which typically is 1/2 the System/Core clock).&lt;/P&gt;&lt;P&gt;When configuring the UART baud this fact must be taken into consideration.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 14:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494196#M4533</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-11T14:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK example "hello world" for MK22FX512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494197#M4534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;Can you please tell me how do I change the UART1 setting of the MK22FX512VLH12 so that I can use the correct baud rate? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nakul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 15:10:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494197#M4534</guid>
      <dc:creator>nakulyadur</dc:creator>
      <dc:date>2016-04-11T15:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK example "hello world" for MK22FX512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494198#M4535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nakul,&lt;/P&gt;&lt;P&gt;In the hello_world_twrk21f120m project the hello_world.c has following in main():&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14603903315986172 jive_text_macro" data-renderedposition="60_8_1192_64" jivemacro_uid="_14603903315986172"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Init board hardware. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOARD_InitPins();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOARD_BootClockRUN();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOARD_InitDebugConsole();&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the BOARD_InitPins() in pin_mux.c you need to change the UART pin configuration from default UART5 (PTD8/9) to UART1 (PTE0/1):&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_14603910860126606 jive_macro_code jive_text_macro" data-renderedposition="176_8_1192_320" jivemacro_uid="_14603910860126606"&gt;&lt;P&gt;void BOARD_InitPins(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;#if 1 //DES 1=test changing default UART, 0=default code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize UART1 pins below */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Ungate the port clock */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_EnableClock(kCLOCK_PortE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Affects PORTD_PCR8 register */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_SetPinMux(PORTE, 0u, kPORT_MuxAlt3);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Affects PORTD_PCR9 register */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_SetPinMux(PORTE, 1u, kPORT_MuxAlt3);&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize UART1 pins below */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Ungate the port clock */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_EnableClock(kCLOCK_PortD);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Affects PORTD_PCR8 register */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_SetPinMux(PORTD, 8u, kPORT_MuxAlt3);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Affects PORTD_PCR9 register */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_SetPinMux(PORTD, 9u, kPORT_MuxAlt3);&lt;/P&gt;&lt;P&gt;#endif&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in board.h you need to changes the clock source as follows:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14603910398604753" data-renderedposition="548_8_1192_256" jivemacro_uid="_14603910398604753"&gt;&lt;P&gt;#define BOARD_USE_UART&lt;/P&gt;&lt;P&gt;#if 1 //DES 1=test changing default UART, 0=default code&lt;/P&gt;&lt;P&gt;#define BOARD_DEBUG_UART_TYPE DEBUG_CONSOLE_DEVICE_TYPE_UART&lt;/P&gt;&lt;P&gt;#define BOARD_DEBUG_UART_BASEADDR (uint32_t) UART1&lt;/P&gt;&lt;P&gt;#define BOARD_DEBUG_UART_CLKSRC kCLOCK_CoreSysClk //DES this MARCO not used but update to not confuse user&lt;/P&gt;&lt;P&gt;#define BOARD_DEBUG_UART_CLK_FREQ CLOCK_GetCoreSysClkFreq()&lt;/P&gt;&lt;P&gt;#define BOARD_UART_IRQ UART1_RX_TX_IRQn&lt;/P&gt;&lt;P&gt;#define BOARD_UART_IRQ_HANDLER UART1_RX_TX_IRQHandler&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;#define BOARD_DEBUG_UART_TYPE DEBUG_CONSOLE_DEVICE_TYPE_UART&lt;/P&gt;&lt;P&gt;#define BOARD_DEBUG_UART_BASEADDR (uint32_t) UART5&lt;/P&gt;&lt;P&gt;#define BOARD_DEBUG_UART_CLKSRC kCLOCK_BusClk&lt;/P&gt;&lt;P&gt;#define BOARD_DEBUG_UART_CLK_FREQ CLOCK_GetBusClkFreq()&lt;/P&gt;&lt;P&gt;#define BOARD_UART_IRQ UART5_RX_TX_IRQn&lt;/P&gt;&lt;P&gt;#define BOARD_UART_IRQ_HANDLER UART5_RX_TX_IRQHandler&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have a TWR-K21F120M to test this with but I believe the above should work.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:11:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494198#M4535</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-11T16:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK example "hello world" for MK22FX512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494199#M4536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfect. Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;Nakul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 06:08:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-example-quot-hello-world-quot-for-MK22FX512VLH12/m-p/494199#M4536</guid>
      <dc:creator>nakulyadur</dc:creator>
      <dc:date>2016-04-12T06:08:38Z</dc:date>
    </item>
  </channel>
</rss>

