<?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 MicrocontrollersのトピックRe: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561562#M33831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jenia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you build with KDS there is a post-build step that executes a bat file called "generate.bat" in&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;\Applications\uTaskerSerialBoot\KinetisDesignStudio\uTaskerSerialLoader_FLASH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If all works correctly you should find that it then generates *.bin, *.srec and *.ihex outputs from the elf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simplest way to load the binary file to the board is by using drag-and-drop (bin file) onto the external hard drive that appears when the board is connected. Make sure that you have the latest P&amp;amp;E OpenSDA boot loader installed on the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART1 is connected on the board to the OpenSDA's virtual COM port (UART1 RX = PTC6 and UART1 TX = PTC7). When the boot loader project is loaded you should be able to comunicate over this interface. I recommend to not use the KBOOT build for first tests since the SREC UART loader option displays a menu on the interface by default which allows the communication to be tested more easily. Note that the green LED flashes at 5Hz when the code runs normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to program from KDS you will need to make a debug connection which is described at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fforum%2Findex.php%3Ftopic%3D1915.msg7020%23msg7020" rel="nofollow" target="_blank"&gt;http://www.utasker.com/forum/index.php?topic=1915.msg7020#msg7020&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you change LOADER_UART to 0 it will indeed move the UART interface from UART 1 to UART 0.&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>Sun, 26 Jun 2016 21:46:02 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2016-06-26T21:46:02Z</dc:date>
    <item>
      <title>Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561555#M33824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;First of all I'm newbie in this area :smileyhappy:.&lt;/P&gt;&lt;P&gt;Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?&lt;/P&gt;&lt;P&gt;I need for my project option to be able to load new/updated programs on KE04Z/KE06Z.&lt;/P&gt;&lt;P&gt;I have read about bootloaders various literature and some stuff/answers on this community, but due to my lack of experience in this field, I've lost myself :smileyplain:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achieve this goal? What steps should I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your attention.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jenia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 10:00:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561555#M33824</guid>
      <dc:creator>jeniabrook</dc:creator>
      <dc:date>2016-06-22T10:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561556#M33825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jenia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please, take a look at &lt;A href="http://cache.nxp.com/files/32bit/doc/app_note/AN4767.pdf?fpsp=1&amp;amp;WT_TYPE=Application%20Notes&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf" title="http://cache.nxp.com/files/32bit/doc/app_note/AN4767.pdf?fpsp=1&amp;amp;WT_TYPE=Application%20Notes&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;UART Boot Loader Design on Kinetis E Series - Application Note&lt;/A&gt; and for related SW&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.nxp.com/files/32bit/doc/app_note/AN4767SW.zip" target="_blank"&gt;AN4767SW.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, let me know if this helps.&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 12:53:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561556#M33825</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2016-06-22T12:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561557#M33826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can get a UART loader (either SREC/iHEX/KBOOT/Developer's Loader) for the FRDM-KE06 from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KE06Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE06Z.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since the KE04 has only 8k of Flash it is not normally practical to use a boot loader on it since the boot loader will tend to already use up the available Flash space...&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Serial loader document: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerSerialLoader.PDF" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:43:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561557#M33826</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-06-22T14:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561558#M33827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark.&lt;/P&gt;&lt;P&gt;I downloaded the uTaskerV1.4, opened it in KDS accordingly to yours instructions &lt;A href="http://www.utasker.com/kinetis/compilers.html" title="http://www.utasker.com/kinetis/compilers.html"&gt;µTasker Kinetis Compiler Information&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;In ''Build Configurations --&amp;gt; Set Active'' I chose uTaskerSerialLoader_FLASH.&lt;/P&gt;&lt;P&gt;In config.h I selected FRDM_KE06Z and verified that only one target is selected.&lt;/P&gt;&lt;P&gt;In "&lt;TT&gt;File--&amp;gt;Properties --&amp;gt; C/C++ Build --&amp;gt; Settings --&amp;gt; Tool Settings &lt;TT&gt;--&amp;gt;&lt;/TT&gt; Target Processor &lt;TT&gt;--&amp;gt;&lt;/TT&gt; ARM family" &lt;/TT&gt;I selected cortex-m0plus.&lt;/P&gt;&lt;P&gt;In "&lt;TT&gt;Cross ARM C++ Linker --&amp;gt; General"&lt;/TT&gt;&lt;/P&gt;&lt;P&gt;I selected "KE_128_16_ld".&lt;/P&gt;&lt;P&gt;After all that, I build the project and I&lt;/P&gt;&lt;P&gt;have an error (look at the image that I've attached), what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="sssss.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1105i0AD22322EA2B1982/image-size/large?v=v2&amp;amp;px=999" role="button" title="sssss.jpg" alt="sssss.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I know which pins are configured to use as UART for the loader?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jenia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:23:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561558#M33827</guid>
      <dc:creator>jeniabrook</dc:creator>
      <dc:date>2016-06-23T14:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561559#M33828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Iva.&lt;/P&gt;&lt;P&gt;It doesn't help me much.&lt;/P&gt;&lt;P&gt;I`m looking for simpler solution like Mark suggested down below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jenia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561559#M33828</guid>
      <dc:creator>jeniabrook</dc:creator>
      <dc:date>2016-06-23T14:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561560#M33829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jenia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Which version are you using? I suspect V1.4.7&lt;/P&gt;&lt;P&gt;2. Beware that KDS is a bit wierd in that it doesn't always correctly highight the folders belonging to the target (see&amp;nbsp; &lt;A href="https://community.nxp.com/thread/353939"&gt;KDS selection project active&lt;/A&gt; for how to correct this). Then the serial loader folder will be highlighted when you select its target.&lt;BR /&gt;3. I suspect that you have modified &lt;STRONG&gt;config.h&lt;/STRONG&gt; in the &lt;STRONG&gt;uTaskerV1.4&lt;/STRONG&gt; target rather than the &lt;STRONG&gt;uTaskerSerialBoot&lt;/STRONG&gt; target, which means that you are in fact building for a different processor but with &lt;EM&gt;Cortex-m0+&lt;/EM&gt; setting; this will fail since it tries to use some m4 assembler code with the m0+ compiler/assembler. That is, make sure you edit in &lt;STRONG&gt;\Applications\&lt;SPAN style="text-decoration: underline;"&gt;uTaskerSerialBoot&lt;/SPAN&gt;\config.h&lt;/STRONG&gt; and not in &lt;STRONG&gt;\Applications\&lt;SPAN style="text-decoration: underline;"&gt;uTaskerV1.4&lt;/SPAN&gt;\config.h&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally I recommend using the latest V1.4.11 version since it has a complete set of serial loader targets (the V1.4.7 has FRDM-KE02Z but not actually FRDM-KE06Z since it is an older version from 2014, although it is easy to add a new board if desired since there is a reference in the uTaskerV1.4 target).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To select the UART used you can set &lt;STRONG&gt;LOADER_UART&lt;/STRONG&gt; (in app_hw_kinetis.h) to the UART number (eg. 0 or 1).&lt;/P&gt;&lt;P&gt;To selet the actual pins used there are number of defines such as &lt;STRONG&gt;UART0_ON_A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Check the code in &lt;STRONG&gt;fnTxOn()&lt;/STRONG&gt; and &lt;STRONG&gt;fnRxOn()&lt;/STRONG&gt; which is selecting the pins. Eg. for the KE family it does the following for UART0 Tx:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#if defined UART0_ON_A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_PINSEL0 |= (SIM_PINSEL_UART0PS);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _CONFIG_PERIPHERAL(A, 3, (PA_3_UART0_TX | UART_PULL_UPS)); // UART0_TX on PA3 (alt. function 2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#else&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _CONFIG_PERIPHERAL(B, 1, (PB_1_UART0_TX | UART_PULL_UPS)); // UART0_TX on PB1 (alt. function 2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#endif&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, if you build and run in the uTasker KE simulator you can also see the function of each pin to check that the peripherals are configured as desired.&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>Fri, 24 Jun 2016 11:59:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561560#M33829</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-06-24T11:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561561#M33830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I'm using uTaskerKinetisV1.4.11.&lt;/LI&gt;&lt;LI&gt;Thanks for the explanation regarding to KDS project selection.&lt;/LI&gt;&lt;LI&gt;I have modified the config.h in &lt;STRONG&gt;uTaskerSerialBoot &lt;/STRONG&gt;target. &lt;STRONG&gt;LOADER_UART &lt;/STRONG&gt;is 1 according to KE06Z choice.&lt;/LI&gt;&lt;LI&gt;I've built the project, &lt;STRONG&gt;uTaskerSerialLoader.elf&lt;/STRONG&gt; created (bin, srec are missing), tried to flash it via KDS, it is different from the video tutorial (with Code Warrior). Tried to hook up UART (checked all possible pins for that) and it didn't work.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Can you explain how to flash properly via KDS ?&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;LOADER_UART &lt;/STRONG&gt; is 0, does it means that UART0 is set for the serial loader?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jenia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2016 13:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561561#M33830</guid>
      <dc:creator>jeniabrook</dc:creator>
      <dc:date>2016-06-26T13:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561562#M33831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jenia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you build with KDS there is a post-build step that executes a bat file called "generate.bat" in&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;\Applications\uTaskerSerialBoot\KinetisDesignStudio\uTaskerSerialLoader_FLASH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If all works correctly you should find that it then generates *.bin, *.srec and *.ihex outputs from the elf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simplest way to load the binary file to the board is by using drag-and-drop (bin file) onto the external hard drive that appears when the board is connected. Make sure that you have the latest P&amp;amp;E OpenSDA boot loader installed on the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART1 is connected on the board to the OpenSDA's virtual COM port (UART1 RX = PTC6 and UART1 TX = PTC7). When the boot loader project is loaded you should be able to comunicate over this interface. I recommend to not use the KBOOT build for first tests since the SREC UART loader option displays a menu on the interface by default which allows the communication to be tested more easily. Note that the green LED flashes at 5Hz when the code runs normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to program from KDS you will need to make a debug connection which is described at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fforum%2Findex.php%3Ftopic%3D1915.msg7020%23msg7020" rel="nofollow" target="_blank"&gt;http://www.utasker.com/forum/index.php?topic=1915.msg7020#msg7020&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you change LOADER_UART to 0 it will indeed move the UART interface from UART 1 to UART 0.&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>Sun, 26 Jun 2016 21:46:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561562#M33831</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-06-26T21:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561563#M33832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark.&lt;/P&gt;&lt;P&gt;I've successfully uploaded the serial loader to the target, the green LED is indeed flashes at 5Hz.&lt;/P&gt;&lt;P&gt;Hooked up the UART interface and connected to one of the terminals and this is what I'm getting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="01.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60544i795BEDABCDD36988/image-size/large?v=v2&amp;amp;px=999" role="button" title="01.jpg" alt="01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've verified the setting in the code and in terminal emulator --&amp;gt; [115200 Baud, 8 Bits, 1 Stop bit, no parity, XON/XOFF flow control].&lt;/P&gt;&lt;P&gt;In TeraTerm the same result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="02.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36288i6F47AF1098D0D6DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="02.jpg" alt="02.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know that if I see some gibberish from UART it is probably misfit between the UART interface and the terminal emulator in settings, in this case I've double checked the settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the problem &amp;amp; how to overcome it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jenia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 10:09:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561563#M33832</guid>
      <dc:creator>jeniabrook</dc:creator>
      <dc:date>2016-06-27T10:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561564#M33833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jenia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The baud rate is configured with the define (eg.):&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define SERIAL_SPEED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;SERIAL_BAUD_38400&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;If you have the KBOOT loader operation (rather then SREC) it is fixed at SERIAL_BAUD_57600 since the KBOOT utility is fixed at this speed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have configured for the SREC loader you should get a menu printed out at each reset, therefore you can check that the characters are originating from the board by repeating a reset and you should see the same pattern each time. To be absolutely sure you can check the baud rate with an oscillocope to see whether there is some deviation.&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>Mon, 27 Jun 2016 10:31:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561564#M33833</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-06-27T10:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561565#M33834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Baud rate is:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define SERIAL_SPEED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;SERIAL_BAUD_115200&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked the baud rate with an oscilloscope and it was ~100000, so I think it is OK.I configured for the SREC loader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jenia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 12:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561565#M33834</guid>
      <dc:creator>jeniabrook</dc:creator>
      <dc:date>2016-06-27T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ability to load a program to FRDM-KE04Z/KE06Z through UART?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561566#M33835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jenia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FRDM-KE06Z target defaults to using the 8MHz crystal as clock source, based on these defines in &lt;EM&gt;app_hw_kinetis.h&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define CRYSTAL_FREQUENCY&amp;nbsp;&amp;nbsp;&amp;nbsp; 8000000 // 8 MHz crystal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define _EXTERNAL_CLOCK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CRYSTAL_FREQUENCY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define CLOCK_DIV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 256 // input must be divided to 31.25kHz..39.06525kHz range (/1, 2, 4, 8, 16, 32, 64, 128, 256, 512 or 1024 possible)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this input is multiplied by 1024 to 32MHz..40MHz at the FLL output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define SYSTEM_CLOCK_DIVIDE&amp;nbsp; 1&amp;nbsp;&amp;nbsp; // divide the FLL output to give the system clock (maximum 40MHz) (/1, 2, 4, 8, 16, 32, 64 or 128 possible)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define BUS_CLOCK_DIVIDE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; // divide by 1 or 2 to give bus and flash clock (maximum 20MHz)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This causes the 8MHz input to be divided down to 31'250Hz for the FLL input and then it is multipled by a fixed x1280 to 40.0MHz FLL output.&lt;/P&gt;&lt;P&gt;The system clock is 40MHz and the Bus clock is 20MHz, whereby the Bus clock is used to clock the UART.&lt;/P&gt;&lt;P&gt;The UART baud divider value is 0x0b, which gives 113'636 Baud, which is 1.5% lower than 115'200Baud but should usually be adequately accurate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try with a slower Baud rate, like 19'600, to see whether you can get the menu to display correctly and otherwise check the HW to see whether there are any difficulties at the higher speed (like slow edges due to loading etc.). Since the OpenSDA virtual COM port doesn't respect XON/OFF it is usually necessary to limit to around 38.4kBaud to avoid the UART overrunning when programming flash when using the SREC method without INTERMEDIATE_PROG_BUFFER option (see quide for details).&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>Mon, 27 Jun 2016 13:11:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-there-an-ability-to-load-a-program-to-FRDM-KE04Z-KE06Z/m-p/561566#M33835</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-06-27T13:11:50Z</dc:date>
    </item>
  </channel>
</rss>

