background image

Getting Started with Freescale MQX

™ and IAR Embedded Workbench

®

, Rev. 5, 04/2015 

Freescale Semiconductor 

13

 

Figure 17- Download 

Use the Debug without downloading button

. The debugger connects to the 

selected application. Stop the selected core and debug the booted image.

3.4  MQX RTOS Task Aware Debugging 

MQX RTOS Task Aware Debugging plug-in (TAD) is an optional extension to a debugger tool which 
enables easy debugging of multi-tasking applications. It helps to visualize internal MQX RTOS data 
structures, task-specific information, I/O device drivers, and other MQX RTOS context data. 

3.4.1  Installing 

IAR Embedded Workbench TAD

 

TAD plug-in DLL is pre-installed in IAR Embedded Workbench automatically. To update the plug-in 
to a new version included with the latest MQX RTOS installation, perform the following manual 
installation steps: 

Close the IAR Embedded Workbench IDE.

Locate the 

tools\iar_extensions\

<platform>

 

directory in Freescale MQX RTOS

installation folder (by default 

C:\Freescale\Freescale MQX 

x.y

).

Copy the entire content of 

tools\iar_extensions\

<platform>

  directory to the IAR

Embedded Workbench installation folder (e.g.,

C:\Program Files\IAR Systems\Embedded Workbench 6.4\arm

)

After the steps above are done, verify that the TAD plugin files exist at the new location:

<EW>

\

<platform>

\plugins\rtos\MQX\MQXRtosPlugin.ewplugin

<EW>

\

<platform>

\plugins\rtos\MQX\MQXRtosPlugin

<PLATFORM>

.dll"

Re-start IAR Embedded Workbench IDE.

In the Embedded Workbench environment, you should now be able to enable MQX RTOS
TAD by selecting 

“MQX RTOS” 

in the 

“Plugins” 

tab of the “

Debugger”

 panel of project

settings. All example applications included with Freescale MQX RTOS are already
configured this way.

Summary of Contents for IAR Embedded Workbench

Page 1: ...2015 2015 Freescale Semiconductor Inc All rights reserved Getting Started with Freescale MQX RTOS and IAR Embedded Workbench PRODUCT Freescale MQX RTOS PRODUCT VERSION 4 2 0 DESCRIPTION Using IAR Emb...

Page 2: ...nsequential or incidental damages Typical parameters that may be provided in Freescale data sheets and or specifications can and do vary in different applications and actual performance may vary over...

Page 3: ...MQX RTOS Libraries and example application 3 2 1 Batch Build in IAR Embedded Workbench IDE 3 2 2 Build example demo application project file 4 3 Running and Debugging the MQX RTOS application 5 3 1 Ru...

Page 4: ...ded Workbench development tools and use it to build run and debug applications of the Freescale MQX RTOS operating system See Getting Started with Freescale MQX RTOS and other user documentation inclu...

Page 5: ...kspace file in the folder For example with MQX RTOS mqx_install_dir mqx examples example build iar example _ board_name exampl e _ board_name eww For Hello World example of MQX RTOS for FRDMK64F120M t...

Page 6: ...o application project file Select the build target and memory configuration for the example demo application With the Hello World example application of MQX RTOS for FRDMK64120M it is Int Flash Debug...

Page 7: ...ialization Macro file Connect the USB cable to the OpenJTAG connector on TWR K60N512 board Open the Terminal Window application by using Port USB COM Baud 115200 Parity None Bits 8 In project Options...

Page 8: ...ore you start ensure that the IAR 6 50 2 or newer and the latest J Link drivers from SEGGER is used Open two instances of IAR IDE In the first IDE instance open the Cortex A5 example application In th...

Page 9: ...iple targets and TAP number 0 in the J Link J Trace setting Figure 8 Options for node For secondary core select JTAG scan chain with multiple targets and TAP number 3 in the J Link J Trace setting The...

Page 10: ...Options for node Set the Reset type to Core Figure 10 Options for node setup Start the primary core Cortex A5 application You should see the following message on the terminal Figure 11 Terminal Start...

Page 11: ...I Jet Debugging the multicore with I Jet probe does not offer a possibility to run two debug instances at once Only one core can be under the debugger at any one time Special settings are needed to c...

Page 12: ...Embedded Workbench Rev 5 04 2015 Freescale Semiconductor 10 Figure 13 I Jet Choose arm bin jet firmware i jet v2 I JET upg The frequency needs to be set to 1 Mhz The autodetect does not work correctly...

Page 13: ...ee Readme txt located in the MQX RTOS Bootloader application folder mqx_install_dir mqx examples bootloader_vybrid Readme txt Building Bootloader and creating bootable SD card Import the MQX RTOS Boot...

Page 14: ...id board MQX RTOS Bootloader prints out the following message on default console RS232 TWR SER and start execution of M4 and A5 applications The pingpong example image files are copied to the root dir...

Page 15: ...ncluded with the latest MQX RTOS installation perform the following manual installation steps Close the IAR Embedded Workbench IDE Locate the tools iar_extensions platform directory in Freescale MQX R...

Page 16: ...Getting Started with Freescale MQX and IAR Embedded Workbench Rev 5 04 2015 Freescale Semiconductor 14 Figure 18 Plugins...

Page 17: ...Screens Using the MQX RTOS or RTCS menu in IAR IDE main window several TAD screens may be opened during the debugging session Figure 19 MQX RTOS TAD screens The most helpful and frequently used screen...

Page 18: ...each memory block allocated in the default memory pool by the MQX RTOS system or applications Additional memory pools if used may be displayed by using the Memory Pools screen Figure 22 Memory block s...

Page 19: ...Getting Started with Freescale MQX and IAR Embedded Workbench Rev 5 04 2015 Freescale Semiconductor 17 Figure 23 Lightweight semaphore summary...

Page 20: ...ressing the Break red hand toolbar button In the MQX RTOS menu in the IAR IDE main window select the Task List item at the top of the menu The Task List view opens at the top of the window and gives y...

Page 21: ...a default console for standard input and output operations See more details about this driver in the Getting Started with Freescale MQXTM RTOS document The MQX RTOS currently supports ARM Cortex M Sem...

Page 22: ...ed with Freescale MQX and IAR Embedded Workbench Rev 5 04 2015 Freescale Semiconductor 20 The console can be opened during debugger session using the View Terminal I O menu in the EWARM IDE Figure 26...

Reviews: