MCUXpresso SDK board support folders
MCUXpresso SDK provides example applications for development and evaluation boards. Board support packages are found inside the top level <board_name>
folder, and each supported board has its own folder (an MCUXpresso SDK package can support multiple boards). Within each <board_name>
folder, there are various sub-folders for each example they contain. These include (but are not limited to):
demo_apps
: Applications intended to highlight key functionality and use cases of the target MCU. These applications typically use multiple MCU peripherals and may leverage stacks and middleware.driver_examples
: Simple applications intended to concisely illustrate how to use the MCUXpresso SDK’s peripheral drivers for a single use case. These applications typically only use a single peripheral, but there are cases where multiple are used.rtos_examples
: Basic FreeRTOS examples showcasing the use of various RTOS objects (semaphores, queues, and so on) and interfacing with the MCUXpresso SDK’s RTOS drivers.cmsis_driver_examples
: Simple applications intended to concisely illustrate how to use CMSIS drivers.multicore_examples
: Simple applications intended to concisely illustrate how to use middleware/multicore stack.mmcau_examples
: Simple applications intended to concisely illustrate how to use middleware/mmcau stack.
Example application structure
This section describes how the various types of example applications interact with the other components in the MCUXpresso SDK. To get a comprehensive understanding of all MCUXpresso SDK components and folder structure, see MCUXpresso SDK API Reference Manual.
Each <board_name>
folder in the boards directory contains a comprehensive set of examples that are relevant to that specific piece of hardware. Although we use the hello_world
example (part of the demo_apps
folder), the same general rules apply to any type of example in the <board_name>
folder.
The following figure shows the contents of the hello_world
application folder.
|
|
All files in the application folder are specific to that example, so it is easy to copy and paste an existing example to start developing a custom application based on a project provided in the MCUXpresso SDK.
Parent topic:MCUXpresso SDK board support folders
Locating example application source files
When opening an example application in any of the supported IDEs, various source files are referenced. The MCUXpresso SDK devices folder is the central component to all example applications. It means that the examples reference the same source files and if one of these files is modified, it could potentially impact the behavior of other examples.
The main areas of the MCUXpresso SDK tree used in all example applications are:
devices/<device_name>
: The device’s CMSIS header file, MCUXpresso SDK feature file, and a few other filesdevices/<device_name>/cmsis_drivers
: All the CMSIS drivers for your specific MCUdevices/<device_name>/drivers
: All of the peripheral drivers for your specific MCUdevices/<device_name>/<tool_name>
: Toolchain-specific startup code, including vector table definitionsdevices/<device_name>/utilities
: Items such as the debug console that are used by many of the example applicationsdevices/<devices_name>/project
Project template used in CMSIS PACK new project creation
For examples containing an RTOS, there are references to the appropriate source code. RTOS files are in the rtos
folder. The core files of each of these projects are shared, so modifying one could have potential impacts on other projects that depend on that file.
Note: The RPMsg-Lite
library is located in the <install_dir>/middleware/multicore/rpmsg-lite
folder. For detailed information about the RPMsg-Lite
library, see the RPMsg-Lite User’s Guide, open the index.html
located in the <install_dir>/middleware/multicore/rpmsg_lite/doc
folder.
Note: The package does not include Xplorer IDE and DSP Fusion user guide. If you want to run examples related to DSP Fusion, contact the NXP representative (FAE/SE).
Parent topic:MCUXpresso SDK board support folders