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.
Prerequisites
- Segger J-Link Debug Probe (optional)
- BSP built according to Quickstart BSP Instructions
- Windows 10/11 or Ubuntu 22.04 and above
Prepare Host System
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
Available example applications for TQMa93xxLA:
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
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.