Table of Contents

TQMa93xxLA - YOCTO Linux BSP documentation


This guide describes how to prepare, build, run and debug Cortex-M33 MCUXpresso example applications on STKa93xxLA with Windows and Linux.

Unless otherwise specified, the commands apply to both operating systems.

Prerequisites

Prepare Host System

On Windows Host

On Linux Host

Set up Workspace

Go to the root workspace directory and then clone the repository:

git clone https://github.com/tq-systems/mcuxsdk-examples-tq.git

Install necessary dependencies for the SDK:

pip install ninja jsonschema cmake west
pip install -r mcuxsdk-examples-tq/scripts/requirements.txt

Initialize the workspace

west init --local mcuxsdk-examples-tq 
west update

Note: If the installed commands (e.g. west) are not recognized, their installation directory needs to be added to the PATH environment variable.

For Windows, add the following to the system environment:
C:/Users/<Username>/AppData/Roaming/Python/Python3x/Scripts

For Linux, execute:
export PATH=$PATH:$HOME/.local/bin

Compile the Application

Remove old builds if necessary

On Windows Host

On Linux Host


Available example applications for TQMa93xxLA:

List of Applications

Additional information about the example applications on TQMa93xxLA can be found on our GitHub. For information about a specific application, refer to the corresponding example directory.

Build the Example:

west build -b tqma93xxca-mba93xxca mcuxsdk-examples-tq/_boards/tqma93xxca-mba93xxca/examples/<application_path>/ -Dcore_id=cm33 -DCUSTOM_BOARD_ROOT="mcuxsdk-examples-tq/_boards" --config=debug
#e.g.
west build -b tqma93xxca-mba93xxca mcuxsdk-examples-tq/_boards/tqma93xxca-mba93xxca/examples/demo_apps/hello_world/ -Dcore_id=cm33 -DCUSTOM_BOARD_ROOT="mcuxsdk-examples-tq/_boards" --config=debug

Build configuration and parameters:

The final build is located in build/<application_name>.elf.

Run and Debug the Demo

It is possible to run the example applications from U-Boot or Linux. Specific instructions for each demo can be found on our GitHub.

The applications can also be debugged via VS Code on Windows or via GDB-Server on Linux.

On Windows Host

On Linux Host