FRDM-KE02Z40M Demo Code?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM-KE02Z40M Demo Code?

1,293 Views
trentfoster
Contributor I

I'm looking for some Freescale support.  We have the FRDM-KE02Z40M board.  It has an accelerometer, a RTC, a thermistor, and an IR LED port.

I tried to get the board running using the QuickStart Package located here:

http://www.nxp.com/products/software-and-tools/hardware-development-tools/freedom-development-boards...

The process was ugly... the pre-compiled example is:

Lab_demo_frdm.srec

You are supposed to use the MSD Flash programmer to program that file.


But, the MSD Flash Programmer that is in the quick start package file is out of date.

And the bootloader that you use to program the MSD Flash Programmer is out of date.

Luckily, Brett had tipped me off to the problem with the bootloader and found the new bootloader code on the PEMicro site.


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.


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.

And it works!  Sort of....

The demo works great for the thermistor:

It starts sampling data and shoving it out the serial port as expected:

The other functions, RTC, Accelerometer, etc... don't seem to do anything.  They say that they are starting a demo, but do not do anything.




​The accelerometer function does seem to update an LED.  Is that all it is supposed to do?

I can't find the documentation on the Lab_demo.  There is a readme.txt file that says:

  1. 2. Lab_demo_frdm:

   Default demo. refer to user manual.

But, the demo is not mentioned in the user manual for this board.

http://cache.nxp.com/files/32bit/doc/user_guide/FRDMKE02Z40MUG.pdf?fsrch=1&sr=2&pageNum=1

What am I missing?

0 Kudos
3 Replies

713 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Trent Foster,

     Did you solved your question?

     If you still have question, please let me know.

     If tht post answers your question, please click the Correct Answer button. Thank you!

Best regards,

Jingjing

0 Kudos

713 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Trent Foster,

    About the function of the Lab_demo, please refer to the following readme from Lab_demo source code:

/******************** (C) COPYRIGHT 2013 Freescale ********************

* File Name          : Readme.txt

* Author             : Freescale

* Date First Issued  : 04/12/2013 : Version 1.0

* Description        : Description of the Lab_demo Example.

********************************************************************************

* History:

* 04/17/2013 : Version 1.0

********************************************************************************

* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS

* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.

* AS A RESULT, FREESCALE SHALL NOT BE HELD LIABLE FOR ANY DIRECT,

* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE

* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING

* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

*******************************************************************************/

Example description

===================

This example provides a description of how demo the lad running on the FRDM_KL02E boards,from the

start on, it will print messsage to show all Lab message and indicate how to switch lab demo by slider

on boards.

1. TSS Alisder

    Slip the slider on the boards to switch Lab demo, for example, slip down to switch to next Lab,

    and slip up to switch to last demo,and print message to indicate which Lab demo is running.

    TSS is added to this project by the way of library, we have configured it in

    the other project(KE02TSSWDemo).

2. Accelerometer demo

    Read the data from accelerometer sensor part(MMA8451) through I2C bus and calculate angle change,

    then drive LED to change brightness by Flextimer.

    when you rotate board, blue and green light will change.

3. IrDA

    Uart0_TX output is modulated by FTM0 channel 0( frequency:38khz),then drive infrared transmiting LED.

    UART0_RX input signal is filtered by ACMP in1, then injected to UART0.

    The UART0 is configured as follow:

    - Word Length = 7 Bits

  - One Stop Bit

  - No parity

  - BaudRate = 4800 baud

  - Hardware flow control disabled (RTS and CTS signals)

  - Receive and transmit enabled

  Code is implemented to transmit 16 byte, then check the data received, if success, green light blink,

  otherwise,blue light blink

4. Thermistor

    Sample the Thermistor through ADC, base on the formula of temperature to get condition temperature,

    and show it to teminal and brightness of green light indicate temperature change.

5. RTC

    In RTC demo mode,blue light blink with 2.5Hz frequency, and green light blink with 0.5hz frequency.

6. Idle mode

    In this mode,it don't run others Lab, only Slider is active,blue light bink with cycle of 100mS on and 500mS off.

    

Directory contents

==================

projects/Lab_demo     

Hardware environment

====================

- Board: freedom FRDM-KE02Z, revA

   

- Connect a null-modem male/female RS232 cable between the J6 connector

   and PC serial port. 

- Hyperterminal configuration:

    - Word Length = 7 Bits

    - One Stop Bit

    - No parity

    - BaudRate = 9600 baud

    - flow control: None

 

 

How to use it

=============

In order to make the program work, you must do the following :

- Download project "Lab_demo" to flash through USB(J6) interface.

- Run the example

************************END OF FILE********************************************

    More details, please download the KE02 sample code, and find the Lab_demo source code.

Wish it helps you!

If you still have question, please contact me!

Have a great day,

Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

713 Views
mjbcswitzerland
Specialist V

Trent

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.

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.

You can also check out complete project support from http://www.utasker.com/kinetis/FRDM-KE02Z40M.html which are less demos than complete solutions for this and most Freescale boards.

You will find the same functionality in the reference binaries there but with advanced features too.

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.

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.

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.

Regards

Mark

0 Kudos