Getting Started with the MC56F81000-EVK | NXP Semiconductors

Getting Started with the MC56F81000-EVK

Last Modified: 2022-12-29 08:45:00Supports MC56F81000-EVK

Contents of this document

  • 1

    Plug It In
  • 2

    Get Software
  • 3

    Build, Run
  • 4

    Create
  • 5

    Learn

1. Plug It In

Let’s take your MC56F81000-EVK for a test drive!

1.1 Get familiar with the Board

1.2 Attach the USB cable

There are two micro-USB connectors on the board. One is for on-board OpenSDA to support programming and debugging, another is virtual serial port. Both micro-USB connectors can supply power for the board, so plug the USB cable into either of the connectors.

1.3 Run the Out-of-Box Demo

Your MC56F81000-EVK board comes loaded with a simple switch led demo. The green led D2 lights up, indicating that the board is powered on. The leds D7, D8, D5 and D6 light up one by one, and then turn off one by one.

2. Get Software

Installing software for the MC56F81000-EVK

2.1 Install your toolchain

NXP offers a complimentary toolchain called CodeWarrior IDE. There are many versions of this IDE, to support MC56F81xxx, the latest CodeWarrior for MCUs 11.1 is needed.

Get CodeWarrior

In order to support MC56F81xxx, it's necessary to update the CodeWarrior IDE.

2.2 Jump-Start Your Design with the MCUXpresso SDK

The MCUXpresso Software Development Kit (SDK) is complimentary and includes full source code under a permissive open-source license for all hardware abstraction and peripheral driver software.

Click below to download the latest SDK release for the MC56F81000-EVK.

Get MCUXpresso SDK

You can also use the online SDK Builder to create a custom SDK package for the MC56F81000-EVK.

2.3 FreeMASTER

FreeMASTER is a user-friendly real-time debug monitor and data visualization tool that enables runtime configuration and tuning of embedded software applications. Click below to download the latest FreeMASTER.

Get FreeMASTER

In order to use the CP210x USB to UART bridge virtual COM port communication on MC56F81000-EVK, download and install the CP210x drivers.

CP210x drivers

2.4 MCUXpresso Config Tools

The MCUXpresso Config Tool is an integrated suite of configuration tools that guides users in creating new MCUXpresso SDK projects, and also provides pin and clock tools to generate initialization C code for custom board support. MCUXpresso Config Tools v8.1 or higher version is needed.

MCUXpresso Config Tools

2.5 Serial terminal

Many of the MCUXpresso SDK examples output data over the MCU UART. Make sure you install an terminal application.

Not sure how to use a terminal application? Try one of these tutorials: Tera Term Tutorial, PuTTY Tutorial

3. Build, Run

3.1 Explore the Bare-mental Example Code

According to MC56F81000-EVK hardware, lots of bare-mental demo application and driver examples that not base on SDK and Config tool are developed. Click below to download the ‘MC56F81000-EVK Demo Examples’

MC56F81000-EVK Demo Examples

3.2 Explore the MCUXpresso SDK Example Code

The MCUXpresso SDK comes with a long list of example applications code. To see what's available, browse to the SDK boards folder of your SDK installation and select evkmc56f81000 SDK_Install_Directory>/boards/evkmc56f81000

To learn more about specific example code, open the readme.txt file in an example’s directory.

3.3 Build, Run

If one or more of the demo application or driver examples sounds interesting, you’re probably wanting to know how you can build and debug yourself. The following guide provides easy, step-by-step instructions on how to open, build and debug an example code using the CodeWarrior IDE.

Create

Create an application for MC56F81000-EVK

4.1 New project with CodeWarrior

If one or more of the demo application or driver examples sounds interesting, you’re probably wanting to know how you can build and debug yourself. The following guide provides easy, step-by-step instructions on how to open, build and debug an example code using the CodeWarrior IDE.

4.2 Clone an example project with MCUXpresso Config Tool

Option A: Use the MCUXpresso Config Tool to clone an existing MCUXpresso SDK example project.

1. Clone a project by MCUXpresso Config Tool

The following steps will guide you through cloning the example project with MCUXpresso Config Tool.

  1. Open the MCUXpresso Config Tool.
  2. Select the Create a new configuration and project based on an SDK example or hello world project radio button from the Start development window. Alternatively, you can select the option by choosing File -> New from the Main Menu. Then click Next.
  3. On the next screen, click Browse… to select the location of the MCUXpresso SDK that you had unzipped earlier, then select the project to clone. In this guide, we use the project template. You can then also specify where to store this project and the project name. Then click finish.
  4. Click Close and Update Code.
  5. Click OK.
  6. A new project is cloned and the Clocks tool appears as default.
  7. After configuration, open the project with CodeWarrior. Import, build, and run the project as done in the previous section.

Option B: Copy an template project in ‘ Project Template MC56F81xxx ’ and modify it. The template projects are extracted from related packages and contains all the necessary drivers.

2. Copy a template project

  1. Download the project template package and unzip. There are template projects for any part of 56F81xxx.
  2. Launch CodeWarrior 11.1, then go to file -> Import.
  3. In the list of import source, expand the General tree control and select Existing projects into Workspace. Then click Next.
  4. Select Browse…, navigate to the template projects downloaded and select.
  5. The selected project appears in the Projects list, and select ‘Copy projects into workspace’, so that a new project is created and the template won’t be changed, then click Finish.
  6. Now the project appears in the CodeWarrior Project view of the Workbench window. Change the project name by right clicking the project name and select Rename…
  7. Open the Config Tool by double clicking ‘project_template_MC56F81868.mex’ and modify.

4.3 Use the Clock Tools

Now, let’s use the clocks tool that’s part of the MCUXpresso Config Tool to change the clock settings.

1. Use Clocks Tool

  1. Open the MCUXpresso Config Tool:
  2. Double click the ‘mex’ file in the project folder
  3. Open the MCUXpresso Config Tool program, in the wizard that comes up, select the ‘Open an existing configuration’ radio button, and click Browse… to select the project that you want to open, then click Finish
  4. Open the Clocks Tool by selecting Tools->clocks from the toolbar, or by selecting the Clocks button from the menu bar
  5. Use the clocks tool to modify the system clock. The template project configures the chip runs in normal mode, uses internal 8 MHz OSC as the clock source, and enables PLL to generate the 50 MHz BUS_CLK
  6. Change the clock mode by clicking on the Clock Mode check box and selecting the desired mode
  7. If fast mode is selected, the BUS_CLK would be 25 MHz under current clock divider. Change COD from 2 to 1 to generate the 50 MHz BUS_CLK and 100 MHz SYS_CLK.
  8. After configuration, it’s time to implement these changes into the project by exporting the new updated clock files that are generated by Clocks tool. Click on the Update Code in the menu bar.
  9. The screen that pops up will show the files that are changing, and you can click on ‘change’ to see the difference between the current file and the new file generated. Then click OK to overwrite the new files into your project.

4.4 Use the Pins Tool

Next use the Pins tool that is part of the MCUXpresso Config Tool to show how to add a new GPIO pin to your project to blink an LED.

1. Use the Pins Tool

  1. Open the MCUXpresso Config Tool:
  2. Double click the ‘mex’ file in the project folder.
  3. Open the MCUXpresso Config Tool program, in the wizard that comes up, select the ‘Open an existing configuration’ radio button, and click Browse… to select the project that you want to open, then click Finish.
  4. Open the Pins Tool by selecting Tools->Pins from the toolbar, or by selecting the Pins button from the menu bar. The pins tool now display the pin configuration for the template project.
  5. Use the pins tool to modify the LED routed pin:
  6. In the current configuration, GPIOC0 and C1 are routed as EXTAL and XTAL, GPIOC11 and C12 are routed as TXD1 and RXD1 (routed pins have a check in a green box next to the pin name, and the functions selected for each routed pin are shown).
  7. Disable OCCS routed pins. Click the green box next to OCCS, in the wizard that comes up, uncheck EXTAL and XTAL, or click the Unroute All. Then click Done. The pins will then be disabled and disappear from the Routed Pins list.
  8. Disable QSCI1 routed pins as last step.
  9. Route GPIOF6 as a GPIO for LED D5

    Option A: Search GPIOF6 in the Pins view, click the box next to pin number and select GPIOF6 in the pop-up window, then click Done. The pin will then appear in the Routed Pins list.

    Option B: Add a new row directly in Routed Pins window, click the peripheral box and select GPIOF, then select GPIO,6 in the signal box.

  10. Configure GPIOF6 properties.
  11. Now it’s time to implement these changes into the project by exporting the new updated files that are generated by the Pins tool. Click on the Update Code in the menu bar.
  12. The screen that pops up will show the files that are changing, and you can click on ‘change’ to see the difference between the current file and the new file generated. Then click OK to overwrite the new files into your project.

4.5 Use the Peripherals Tool

Next use the Peripheral tool that is part of the MCUXpresso Config Tool to show how to configure a PIT for LED blinking frequency control.

Use Peripheral Tool

  1. Open the MCUXpresso Config Tool:
  2. Double click the ‘mex’ file in the project folder.
  3. Open the MCUXpresso Config Tool program, in the wizard that comes up, select the ‘Open an existing configuration’ radio button, and click Browse… to select the project that you want to open, then click Finish.
  4. Open the Clocks Tool by selecting Tools->Peripherals from the toolbar, or by selecting the Peripherals button from the menu bar.
  5. Use the peripherals tool to configure PIT0:
  6. Open Boot_option by double clicking it in the components window. In current configuration, chip boots from Flash. Select the ‘Enter bootloader at startup’, ‘Power on reset’ and ‘External pin reset’ check boxes, chip will boot from ROM at power on reset and pin reset. The BCA and FCF can be changed in Flash_configuration.
  7. Add a PIT by clicking the Add button and select PIT, then click OK.
  8. Now PIT0 appears in the components window and it’s opened. Change PIT0 configuration as the following picture, PIT0 roll-over interrupt is enabled for GPIOF6 flip.
  9. Now it’s time to implement these changes into the project by exporting the new updated files that are generated by the Periperals tool. Click on the Update Code in the menu bar.
  10. The screen that pops up will show the files that are changing, and you can click on ‘change’ to see the difference between the current file and the new file generated. Then click OK to overwrite the new files into your project.
  11. Import the project into CodeWarrior IDE as done in the previous section.
  12. Open main.c in the project folder and add the interrupt routine in it by selecting ‘Copy to clipboard’ and pasting.
  13. Add the GPIOF6 flip code into PIT0 rollover interrupt.
  14. Build and download the project as done in the previous section.
  15. Run the application. You should now see the red LED is flashing.
  16. Terminate the debug session. Push the reset button SW1, after waiting several seconds (bootloader timeout), you should now see the red LED starts flashing.

4.6 Success

With the template modified, you will see the MC56F81000-EVK’s red LED blinking.

Learn

Explore beyond the MC56F81000-EVK by integrating other NXP solutions and software to your project and interact with our worldwide design community.

5.1 Motor Control

MC56F81000-EVK form-factor compatible with the LVPMSM and LVBLDC motor control platform, adds the motor control capabilities. Find out more at FRDM-MC-LVPMSM and FRDM-MC-LVBLDC.

5.2 DSC and MCUXpresso Communities

Connect with other engineers and get expert advice on designing with DSC and MCUXpresso Software and Tools. Join the community discussion in one of our two dedicated communities: DSC community or MCUXpresso Software and Tools Community.