Run an example application

To download and run the application, perform the following steps:

  1. Connect the MC56F83000-EVK JM60 USB port, J8, to your PC via USB cable within the board package. This USB port is used for on board OSJTAG debugger and USB to UART bridge.

  2. Install the OSJTAG driver and USB CDC driver as PC hint if it is the first time you run it on your PC. The OSJTAG and USB CDC driver are provided by CodeWarrior by default.

    The CodeWarrior may prompt to update the JM60 firmware, which requires to connect the J6 with a jumper on board and then follow the instruction by CodeWarrior to finish the firmware update. The default debug interface is OSJTAG for MC56F83000-EVK board.

  3. Open the terminal application on the PC, such as PuTTY or Teraterm, and connect to the debug COM port (to determine the COM port number, see How to determine COM port). Configure the terminal with these settings:

    1. 115200, defined by BOARD_DEBUG_UART_BAUDRATE in the board.h file

    2. No parity

    3. 8 data bits

    4. 1 stop bit |

|

  1. For this example, click Debug in the Commander pane, and select the hello_world_flash_sdm_lpm_debug_OSJTAG launch configuration.

    |

|

|![](../images/debug_configuration_selection.png "Debug configuration selection")

|

Then the application is downloaded onto target board and automatically runs to the `main()` function.

To run the code, click **Run** on the toolbar.

**Note:**

-   Generally there are four build configurations for DSC SDK 2.1x.x: `flash_sdm_lpm_debug`, `flash_sdm_lpm_release`, `flash_ldm_lpm_debug`, and `flash_ldm_lpm_release`.

    `debug` uses optimization level 1 and `release` uses optimization level 4. `sdm` means small data memory model. `ldm` means large data memory model. `lpm` means large program memory model.

-   Check each demo `readme` document, which includes detailed instructions for HW and SW settings.
|![](../images/run_button.jpg "Run button")

|

  1. The hello_world application is now running and a banner is displayed on the terminal, as shown in Figure 5. If it does not appear, check your terminal settings and connections.

    |

|

Parent topic:Run a demo application using CodeWarrior