Running MQX on K70/K61 SOM Print

 

This application note explains how to run MQX on the K70/K61 SOM.


Installing MQX

To install MQX on K70/K61 SOM, perform the following steps:

  1. Download Freescale MQX 3.8.0 at http://www.freescale.com/webapp/sps/site/homepage.jsp?code=MQX_HOME
    and install it on your Windows computer.
  2. Install Cygwin (http://cygwin.com/install.html) including the patch and tar utilities.
  3. Run Cygwin Terminal.
  4. Go to the Freescale MQX 3.8.0 installation directory.
  5. cd /cygdrive/c/Program\ Files/Freescale/Freescale\ MQX\ 3.8/

  6. Unpack and apply the patch (mqx-k70som-2012-06-26.patch.tar.bz2).
  7. tar xvjf mqx-k70som-2012-06-26.patch.tar.bz2
    patch -p1< mqx-k70som-2012-06-26.patch

  8. Unpack the pre-built libraries for CodeWarrior from the file mqx-k70som-2012-06-26-libs.tar.bz2.
  9. tar xvjf mqx-k70som-2012-06-26-libs.tar.bz2

  10. Open Windows Shell and install MQX extensions for CodeWarrior.
  11. cd tools/codewarrior_extensions/CW\ MCU\ v10.2/
    cmd
    (- Now in the Windows shell -)
    install_cw10.2_plugin.bat "C:\Freescale\CW MCU v10.2"


Building an MQX example application in CodeWarrior

Follow these steps to build the RTCS/shell project:

  1. In CodeWarrior 10.2, click File -> New -> MQX 3.8 Project.
  2. Select board Kinetis Evaluation Boards -> Emcraft K70 System-on-Module.
  3. Select application type: Example application.
  4. Select example application: RTCS examples -> shell example.
  5. After the project is created, select it on the panel CodeWarrior Project.
  6. Open Run -> Run Configurations.... For every run configuration of your project, set the delay before communicating to target to 50 milliseconds - this is required for K70-SOM. (Go to the Main tab -> Connection -> Edit... -> Connection tab -> Target Communication Speed box -> Delay after Reset and before communicating to target for.)
  7. Click Project -> Build Project.
  8. Connect a P&E USB MultiLink Universal debugger device as described in this application note.
  9. Click Run -> Run.

Please note that we support only CodeWarrior-10.2 as the IDE (no IAR or other IDEs) and only MQX version 3.8.0. The patch will not apply to the MQX 3.8.1 tree.