S32 Design Studio: Import ACH Project and Build it using AI

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32 Design Studio: Import ACH Project and Build it using AI

S32 Design Studio: Import ACH Project and Build it using AI

 

Introduction

 

This tutorial shows how an AI agent, together with S32 Design Studio AI Support, can run a complete S32 Design Studio workflow from one natural-language prompt. The workflow covers importing an NXP Application Code Hub example, generating configuration code, building the project, and running it on hardware.

Instead of clicking through wizards, configuration views, and debug settings, you describe the result you want in plain language. The agent then uses S32 Design Studio AI Support's MCP tools to carry out each step.

In this scenario, you ask the agent to complete an end-to-end task:

  • Start S32 Design Studio with a dedicated workspace.
  • Import the GPIO Blinking LED Demo from the NXP Application Code Hub.
  • Target the FRDM-A-S32K312 board.
  • Generate code for Pins, Clocks, and Peripherals using S32 Configuration Tools.
  • Build the project with zero errors.
  • Flash and run the firmware on the connected board.

The agent breaks this request into a sequence of tool calls. It starts the IDE, searches the Application Code Hub, imports the demo, runs code generation, builds the project, and flashes the board. 

Estimated time: ~20 minutes.

System Architecture

 

danielabotezatu_0-1790607563472.png
GPIO Blinking LED Demo — FRDM-A-S32K312 – system architecture overview

 

The components involved are:
 
FRDM-A-S32K312 – Target evaluation board. Runs the GPIO Blinking LED Demo firmware.
Host PC – Runs S32 Design Studio and the S32 Design Studio AI Support. Imports the project, generates code, builds, and flashes the firmware over USB.

Prerequisites

 

What you need before starting

 

  • Download the FRDM Automotive S32K3 + S32M27 Board Installation Package from the Automotive Package Manager – LINK
  • Install S32 Design Studio (version 3.6.5 or newer) from the above bundle into working directory along with the S32K3 SDK 
  • Install the S32 Design Studio MCP REST Server (bundled with S32 Design Studio 3.6.11+ or available for installation via Extensions and Updates in older versions starting with 3.6.5)
  • One FRDM-A-S32K312 evaluation board + USB cable
  • Download, install and configure your agent to use the S32 Design Studio AI Support from Installation & Usage Guide

 

 Note: This tutorial uses these paths:

  • Installation: C:\NXP\2026\K3_kit\S32DS_3.6.8
  • Workspace: C:\NXP\2026\K3_kit\workspace_S32DS_3.6.8_K3_kit

You can use any location. If you do, update the paths in the prompt to match.

 

Connect the FRDM-A-S32K312 board to the PC via USB before starting. The AI will detect the board automatically through the MCP server.

Steps

 

Send the following prompt to your AI assistant. It is a complete, self-contained instruction that drives the demo.

 

Step 1 – Import GPIO Blinking LED Demo & build

You are a software developer that needs to use S32K312 FRDM board, start S32DS that is installed at C:\NXP\2026\K3_kit\S32DS_3.6.8, import the GPIO Blinking LED Demo for FRDM-A-S32K312 from the NXP Application Code Hub into S32 Design Studio IDE.
After importing, run S32 Configuration Tools to generate code (Pins, Clocks, Peripherals), build and run the project.
Use s32ds-agentic-ai MCP server and if the server disconnects, stop and notify the user.
AI will:
 
  • Start S32 Design Studio from C:\NXP\2026\K3_kit\S32DS_3.6.8
  • Search NXP Application Code Hub for GPIO Blinking LED Demo for FRDM-A-S32K312 and import it into S32DS
  • Open S32 Configuration Tools and click Generate Code (Pins, Clocks, Peripherals)
  • Trigger a full build and confirm zero errors
  • Flash and run the project on the board
  • Stop and notify the user if the s32ds-agentic-ai server disconnects

Verifying the Result

 

Work through this final check to confirm that the prompt completed successfully.

 

Final check
  1. The project is imported and visible in the S32DS Project Explorer.
  2. S32 Configuration Tools ran successfully – Pins, Clocks, and Peripherals code was generated with no errors.
  3. Build completes with zero errors.
  4. Firmware is flashed and running on the FRDM-A-S32K312 board.
  5. The onboard LED should toggle with a 500ms cadence (500ms on, 500ms off).

Troubleshooting

 

Symptom Fix
Project not found in Application Code Hub Confirm the search term is GPIO Blinking LED Demo for FRDM-A-S32K312. Check that the s32ds-agentic-ai is connected and the ACH tool is available.
Import fails or project does not appear in Project Explorer Try File › Import › Existing Projects into Workspace manually. Confirm the workspace path is C:\NXP\2026\K3_kit\workspace_S32DS_3.6.8_K3_kit.
S32 Configuration Tools does not open Double-click the .mex file in the project root. Ensure the S32K3 SDK is installed and the project SDK is correctly configured.
Generate Code produces errors Check the Pins, Clocks, and Peripherals tabs for validation errors (red markers). Resolve conflicts before regenerating.
Build errors after Generate Code Ensure the generated src/ folder is included in the build path. Try Project › Clean then rebuild.
Flash / debug fails Ensure the board is powered via USB and the J-Link / OpenSDA debugger is recognised. Try Run › Debug Configurations and re-select the correct debug probe.
LED does not blink after flashing Confirm the correct binary was flashed. Check that the debug session started and the program counter advanced past main().
s32ds-agentic-ai server disconnects Stop immediately and restart the MCP server following the setup instructions. Do not continue until the server is confirmed connected.

File Reference

 

File Step Description
src/main.c 1 Main firmware entry point — GPIO LED blinking loop
*.mex 1 S32 Configuration Tools project file (Pins, Clocks, Peripherals)
generate/src/ 1 Auto-generated peripheral initialization source files
generate/include/ 1 Auto-generated peripheral configuration headers

 

Import the demo, generate the configuration code and flash it – your first Application Code Hub project running on the FRDM-A-S32K312 in about 20 minutes.

ラベル(1)
評価なし
バージョン履歴
最終更新日:
29 分前
更新者: