Most of the drivers require pin and clock configuration that is done with NXP's MCUXpresso Config Tools.
Prerequisites
- Download and install the NXP MCUXpresso Config Tools
- To be able to see all supported devices (including the i.MXRT family), you need an Internet connection
Use the tools
The following steps are required to create the configuration (enter the values that are marked bold):
- Start the NXP MCUXpresso Config Tool
- Check Create new configuration for processor, board or kit and click Next >
- Select Boards - IMXRT1060-EVK and click Finish
- From the starting screen, select the Pins tool:
- The tool opens:
- Do all changes required for the driver (see below)
- Go to File - Save to save the project
- Go to File - Export - Pin Tools - Export Source Files and press Next >
- Set a directory where
pin_mux.c
and pin_mux.h
will be created. We suggest <project_dir>\RTE\Board Support\<selected_device>
- Go to Tools - Clocks
- Go to Views - Clocks Diagram and check that all clocks are set correctly for the driver (see below)
- Go to File - Export - Clocks Tool - Export Source Files and press Next >
- Set a directory where
clock_config.c
and clock_config.h
will be created. We suggest <project_dir>\RTE\Board Support\<selected_device>
CMSIS-Driver configuration requirements
For each CMSIS-Driver, the required pin and clock setup is explained in depth below:
Continue by adding user code.