Running MQX on K70/K61 SOM |
|
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:
- 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.
- Install Cygwin (http://cygwin.com/install.html) including the patch and tar utilities.
- Run Cygwin Terminal.
- Go to the Freescale MQX 3.8.0 installation directory.
cd /cygdrive/c/Program\ Files/Freescale/Freescale\ MQX\ 3.8/
- Unpack and apply the patch (mqx-k70som-2012-06-26.patch.tar.bz2).
tar xvjf mqx-k70som-2012-06-26.patch.tar.bz2 patch -p1< mqx-k70som-2012-06-26.patch
- Unpack the pre-built libraries for CodeWarrior from the file mqx-k70som-2012-06-26-libs.tar.bz2.
tar xvjf mqx-k70som-2012-06-26-libs.tar.bz2
- Open Windows Shell and install MQX extensions for CodeWarrior.
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:
- In CodeWarrior 10.2, click File -> New -> MQX 3.8 Project.
- Select board Kinetis Evaluation Boards -> Emcraft K70 System-on-Module.
- Select application type: Example application.
- Select example application: RTCS examples -> shell example.
- After the project is created, select it on the panel CodeWarrior Project.
- 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.)
- Click Project -> Build Project.
- Connect a P&E USB MultiLink Universal debugger device as described in this application note.
- 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.
|