<?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: FRDM-KE02Z40M Demo Code? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z40M-Demo-Code/m-p/507182#M31871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trent Foster,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you solved your question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you still have question, please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If tht post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jan 2016 08:57:40 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2016-01-13T08:57:40Z</dc:date>
    <item>
      <title>FRDM-KE02Z40M Demo Code?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z40M-Demo-Code/m-p/507179#M31868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for some Freescale support.&amp;nbsp; We have the FRDM-KE02Z40M board.&amp;nbsp; It has an accelerometer, a RTC, a thermistor, and an IR LED port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to get the board running using the QuickStart Package located here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/products/software-and-tools/hardware-development-tools/freedom-development-boards/freescale-freedom-development-platform-for-kinetis-ke02-mcus:FRDM-KE02Z40M?fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;http://www.nxp.com/products/software-and-tools/hardware-development-tools/freedom-development-boards/freescale-freedom-development-platform-for-kinetis-ke02-mcus:FRDM-KE02Z40M?fpsp=1&amp;amp;tab=Design_Tools_Tab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process was ugly... the pre-compiled example is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lab_demo_frdm.srec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are supposed to use the MSD Flash programmer to program that file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; But, the MSD Flash Programmer that is in the quick start package file is out of date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the bootloader that you use to program the MSD Flash Programmer is out of date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luckily, Brett had tipped me off to the problem with the bootloader and found the new bootloader code on the PEMicro site.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Also, the new MSD Flash Programmer is not on the NXP/Freescale site... you have to dig around and find it on the PEMicro site.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; However, once, I got the bootloader updated and the MSD Flash Programmer updated, then I was able to get the Lab_demo_frdm.srec programmed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it works!&amp;nbsp; Sort of....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The demo works great for the thermistor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It starts sampling data and shoving it out the serial port as expected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other functions, RTC, Accelerometer, etc... don't seem to do anything.&amp;nbsp; They say that they are starting a demo, but do not do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;BR /&gt; ​&lt;BR /&gt; ​The accelerometer function does seem to update an LED.&amp;nbsp; Is that all it is supposed to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find the documentation on the Lab_demo.&amp;nbsp; There is a readme.txt file that says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;2. Lab_demo_frdm:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; Default demo. refer to user manual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;But, the demo is not mentioned in the user manual for this board.&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.nxp.com/files/32bit/doc/user_guide/FRDMKE02Z40MUG.pdf?fsrch=1&amp;amp;sr=2&amp;amp;pageNum=1"&gt;http://cache.nxp.com/files/32bit/doc/user_guide/FRDMKE02Z40MUG.pdf?fsrch=1&amp;amp;sr=2&amp;amp;pageNum=1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 21:24:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z40M-Demo-Code/m-p/507179#M31868</guid>
      <dc:creator>trentfoster</dc:creator>
      <dc:date>2015-12-28T21:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE02Z40M Demo Code?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z40M-Demo-Code/m-p/507180#M31869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that the demos are maintained in any way so don't feel that it is worth investing too much time with them.&lt;/P&gt;&lt;P&gt;If you need Freescale/NXP code you may prefer to try Processor Expert or investigate the KExx driver library package; KSDK itself doesn't support the KE parts (at the time of writing) but the driver package gives you many simple examples to start with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can also check out complete project support from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-KE02Z40M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z40M.html&lt;/A&gt;&lt;SPAN&gt; which are less demos than complete solutions for this and most Freescale boards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You will find the same functionality in the reference binaries there but with advanced features too.&lt;/P&gt;&lt;P&gt;The KE02 project can be build with KDS, CW10.x, IAR, Keil, Crossworks, Atollic, Green Hills, Coo Cox, stand-alone GCC or VisualStudio, which allows you to simulate the processor, board and complete projects.&lt;/P&gt;&lt;P&gt;Code written in the uTasker environment is automatically operational on all Kinetis parts - KE, KEA, KL, KW, K (assuming equivalent peripherals are available in the alternative chip) so avoids porting efforts in case you later use different chip types for the same or other products.&lt;/P&gt;&lt;P&gt;It also gives you KBOOT compatibility loading capabilities (as well a serial SREC and SD card), which is otherwise not available for the KE family.&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, 29 Dec 2015 00:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z40M-Demo-Code/m-p/507180#M31869</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-12-29T00:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE02Z40M Demo Code?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z40M-Demo-Code/m-p/507181#M31870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trent Foster,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; About the function of the Lab_demo, please refer to the following readme from Lab_demo source code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/******************** (C) COPYRIGHT 2013 Freescale ********************&lt;/P&gt;&lt;P&gt;* File Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Readme.txt&lt;/P&gt;&lt;P&gt;* Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Freescale&lt;/P&gt;&lt;P&gt;* Date First Issued&amp;nbsp; : 04/12/2013 : Version 1.0&lt;/P&gt;&lt;P&gt;* Description&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Description of the Lab_demo Example.&lt;/P&gt;&lt;P&gt;********************************************************************************&lt;/P&gt;&lt;P&gt;* History:&lt;/P&gt;&lt;P&gt;* 04/17/2013 : Version 1.0&lt;/P&gt;&lt;P&gt;********************************************************************************&lt;/P&gt;&lt;P&gt;* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS&lt;/P&gt;&lt;P&gt;* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.&lt;/P&gt;&lt;P&gt;* AS A RESULT, FREESCALE SHALL NOT BE HELD LIABLE FOR ANY DIRECT,&lt;/P&gt;&lt;P&gt;* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE&lt;/P&gt;&lt;P&gt;* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING&lt;/P&gt;&lt;P&gt;* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.&lt;/P&gt;&lt;P&gt;*******************************************************************************/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example description&lt;/P&gt;&lt;P&gt;===================&lt;/P&gt;&lt;P&gt;This example provides a description of how demo the lad running on the FRDM_KL02E boards,from the &lt;/P&gt;&lt;P&gt;start on, it will print messsage to show all Lab message and indicate how to switch lab demo by slider&lt;/P&gt;&lt;P&gt;on boards.&lt;/P&gt;&lt;P&gt;1. TSS Alisder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Slip the slider on the boards to switch Lab demo, for example, slip down to switch to next Lab, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and slip up to switch to last demo,and print message to indicate which Lab demo is running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TSS is added to this project by the way of library, we have configured it in &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the other project(KE02TSSWDemo).&lt;/P&gt;&lt;P&gt;2. Accelerometer demo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Read the data from accelerometer sensor part(MMA8451) through I2C bus and calculate angle change,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; then drive LED to change brightness by Flextimer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; when you rotate board, blue and green light will change.&lt;/P&gt;&lt;P&gt;3. IrDA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Uart0_TX output is modulated by FTM0 channel 0( frequency:38khz),then drive infrared transmiting LED.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART0_RX input signal is filtered by ACMP in1, then injected to UART0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The UART0 is configured as follow: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Word Length = 7 Bits&lt;/P&gt;&lt;P&gt;&amp;nbsp; - One Stop Bit&lt;/P&gt;&lt;P&gt;&amp;nbsp; - No parity&lt;/P&gt;&lt;P&gt;&amp;nbsp; - BaudRate = 4800 baud&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Hardware flow control disabled (RTS and CTS signals)&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Receive and transmit enabled&lt;/P&gt;&lt;P&gt;&amp;nbsp; Code is implemented to transmit 16 byte, then check the data received, if success, green light blink,&lt;/P&gt;&lt;P&gt;&amp;nbsp; otherwise,blue light blink&lt;/P&gt;&lt;P&gt;4. Thermistor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sample the Thermistor through ADC, base on the formula of temperature to get condition temperature, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and show it to teminal and brightness of green light indicate temperature change.&lt;/P&gt;&lt;P&gt;5. RTC &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In RTC demo mode,blue light blink with 2.5Hz frequency, and green light blink with 0.5hz frequency.&lt;/P&gt;&lt;P&gt;6. Idle mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In this mode,it don't run others Lab, only Slider is active,blue light bink with cycle of 100mS on and 500mS off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Directory contents&lt;/P&gt;&lt;P&gt;==================&lt;/P&gt;&lt;P&gt;projects/Lab_demo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hardware environment&lt;/P&gt;&lt;P&gt;====================&lt;/P&gt;&lt;P&gt; - Board: freedom FRDM-KE02Z, revA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; - Connect a null-modem male/female RS232 cable between the J6 connector &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; and PC serial port.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; - Hyperterminal configuration:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Word Length = 7 Bits&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - One Stop Bit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - No parity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - BaudRate = 9600 baud&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - flow control: None &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;How to use it&lt;/P&gt;&lt;P&gt;=============&lt;/P&gt;&lt;P&gt;In order to make the program work, you must do the following :&lt;/P&gt;&lt;P&gt;- Download project "Lab_demo" to flash through USB(J6) interface.&lt;/P&gt;&lt;P&gt;- Run the example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************END OF FILE********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; More details, please download the&lt;A href="http://www.nxp.com/webapp/sps/download/license.jsp?colCode=KE02-SC&amp;amp;location=null&amp;amp;fpsp=1&amp;amp;WT_TYPE=BSDL&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=zip&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.zip&amp;amp;Parent_nodeId=1370723260812713573371&amp;amp;Parent_pageType=product"&gt; KE02 sample code&lt;/A&gt;, and find the Lab_demo source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact me!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&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, 29 Dec 2015 07:12:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z40M-Demo-Code/m-p/507181#M31870</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-12-29T07:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE02Z40M Demo Code?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z40M-Demo-Code/m-p/507182#M31871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trent Foster,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you solved your question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you still have question, please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If tht post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 08:57:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z40M-Demo-Code/m-p/507182#M31871</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-01-13T08:57:40Z</dc:date>
    </item>
  </channel>
</rss>

