GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ZeZhan/aurix-ai-agent: AURIX AI Agent: Generate, build, and flash Infineon AURIX firmware with GitHub Copilot and MCP in VS Code.

BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
aurix-ai-agent-extension
aurix-ai-agent-extension
 
 
aurix-mcp-server-py
aurix-mcp-server-py
 
 
docs
docs
 
 
media
media
 
 
skills
skills
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.zh-CN.md
README.zh-CN.md
 
 

Repository files navigation

AURIX AI Agent | AI Firmware Development for Infineon AURIX

From natural-language requirements to firmware running on Infineon AURIX™.

AURIX AI Agent is a firmware development assistant powered by GitHub Copilot and the Model Context Protocol (MCP) in VS Code. Describe the behavior you need, and it uses Infineon AURIX documentation, iLLD drivers, and code examples to create or modify firmware, build it with GCC, and flash it to your board.

Built entirely on free tools: the GCC compiler, AURIX Flasher, and the public iLLD driver library and code examples.

English | 简体中文


🚀 Blink your first LED in 2 minutes

You need: VS Code + GitHub Copilot · an AURIX IDE installed (AURIX Development Studio or AURIX Configuration Studio) · your board plugged in over USB.

  1. Install the aurix-ai-agent-extension VSIX.

  2. Open AURIX AI in the sidebar.

  3. Select your Target Device, set the IDE Path, and click Generate Copilot Config.

  4. Open Copilot Chat in Agent mode.

  5. Open Configure Tools and make sure aurix-mcp-server is checked.

  6. Type one sentence:

    "Create a TC375 blinky and flash it."

That's it. The agent creates an empty project for your target device, generates the required code, builds it with GCC, and flashes it to your board with AURIX Flasher — and the LED starts blinking. 💡

your prompt ➜ 🧠 generate ➜ 🔨 build ➜ ⚡ flash ➜ 💡 blink

Prefer a guided setup? Open the AURIX AI Configurator in the sidebar, fill in your device + IDE path, and click Generate Copilot Config — it writes .github/copilot-instructions.md and registers the AURIX MCP server. In Copilot Chat, open Configure Tools and enable aurix-mcp-server.


🎬 See it in action

your prompt → generate → build → flash → debug → runs on the board; a failed check loops back from debug to generate

Demo 1 — Button & LED from an empty folder (TC375 lite Kit)

BUTTON1 toggles LED1 with software debounce; LED2 blinks as a 1 Hz heartbeat from an STM timer interrupt. The agent detects the board revision from the connected kit, takes every pin and active level from the board user's manual and cites the page in the code, then builds and flashes on the first try. No questions asked.

Task Model Time
Button-toggled LED with debounce + STM-interrupt heartbeat, pins cited from the board manual, build and flash GPT-6 Luna (medium) · ~2.9 credits ~6 min ▶ Watch
Prompt
On the TC375 lite Kit (KIT_A2G_TC375_LITE), create a small button/LED application from this empty workspace:

1. LED1 is off after reset. Each press of the on-board user button BUTTON1 toggles LED1 (press once: on, press again: off), exactly one toggle per press, with software debounce of about 20 ms.
2. LED2 blinks as a heartbeat: 500 ms on, 500 ms off, driven by an STM timer interrupt (not a busy-wait loop).
3. Take the LED and button pins and their active levels from the board documentation, and cite the document and page number in a code comment for each pin.
4. Build and flash the firmware to the connected board.

Finally, report: which files you created or changed, the source (document and page, or official example) for every pin and active level, and the build and flash results.

Demo 2 — UART console from an empty folder (TC4D7 lite Kit)

A serial console over the board's USB port: it prints the chip and iLLD version on reset, a status line every second, and takes led on, led off and status commands. The agent starts from the official UART shell example, takes the LED and button pins from the board guide (with page reference), and builds and flashes on the first try.

Task Model Time
USB UART console with periodic status, debounced button counter and LED commands, pin sources reported, build and flash GPT-6 Luna (medium) · ~3.3 credits ~7 min ▶ Watch
Prompt
On the TC4D7 lite Kit (KIT_A3G_TC4D7_LITE), create a UART console from this empty workspace:

1. USB virtual COM port, 115200 baud. On reset, print the device name and iLLD version.
2. Every second, print uptime, LED1 state and the debounced BUTTON1 press count.
3. Commands: "led on" / "led off" switch LED1, "status" prints the status line, anything else replies "unknown command".
4. Build and flash, then report the changed files, the source of each pin, and the build and flash results.

Demo 3 — Two-mode control knob (TC375 lite Kit)

The potentiometer works as a control knob and BUTTON1 switches what it controls: LED1 brightness or the LED2 blink rate. Turning it all the way up triggers an alarm on both LEDs. The mode and knob position are printed over the USB serial port. The agent builds on the official UART VCOM example, traces the knob through the board pin map to EVADC group 0 channel 0, drives LED1 brightness with GTM hardware PWM instead of a software loop, and builds and flashes on the first try.

Task Model Time
Two-mode potentiometer knob: LED1 PWM brightness or LED2 blink rate, alarm above 95 %, USB serial status, pin and ADC sources reported, build and flash GPT-6 Luna · ~5.8 credits ~9 min ▶ Watch
Prompt
On the TC375 lite Kit (KIT_A2G_TC375_LITE), from this empty workspace:

1. The on-board potentiometer is a control knob with two modes, switched by BUTTON1:
   - Mode 1: the knob sets LED1 brightness (off to fully on).
   - Mode 2: the knob sets the LED2 blink rate from 1 to 10 Hz.
2. When the knob is at its maximum (above 95 %), both LEDs blink fast as an alarm, in either mode.
3. Over the USB virtual COM port at 115200 baud, print the mode on every change and the knob position in percent every 500 ms.
4. Build and flash, then report the changed files, the source of each pin and ADC channel, and the build and flash results.

Demo 4 — CAN FD emergency stop, verified with the debugger (TC375 lite Kit)

A robot emergency-stop bus on one board: two MCMCAN nodes in internal loopback act as controller and joint, and BUTTON1 sends a high-priority E-STOP frame. Then the AI debugs the running board itself: it sets breakpoints, steps through the CAN receive handler and reads live variables and error counters to prove every frame arrives intact. It asks the user to press BUTTON1 and confirms the E-STOP breakpoint hits and the joint switches to STOP.

Task Model Time
CAN FD E-STOP over MCMCAN internal loopback, AI debugging on the running board with breakpoints and live variables, build and flash GPT-6 Luna · ~20.8 credits ~22 min ▶ Watch
Prompt
On the TC375 lite Kit (KIT_A2G_TC375_LITE), from this empty workspace, build a robot emergency-stop demo over CAN FD using MCMCAN internal loopback (no external wiring):

1. CAN node 0 is the controller. Every 10 ms it sends the potentiometer position (0-100 %) as the joint target. When BUTTON1 is pressed, it sends a high-priority E-STOP frame.
2. CAN node 1 is the joint. It sets LED1 brightness from the received target. On E-STOP it switches LED1 off and blinks LED2 fast until BUTTON1 is pressed again.
3. Over the USB virtual COM port at 115200 baud, print the target, the TX and RX frame counts and the joint state every 500 ms.
4. Build and flash. Then verify with the debugger, not just by build success: confirm the received target matches the sent one, the frame counts increase and the CAN error counters stay at zero. Set a breakpoint where E-STOP is received, ask me to press BUTTON1, and confirm it is hit and the joint state changes to STOP. If anything disagrees, find the cause, fix it, rebuild, reflash and verify again.
5. Report the changed files, the source of each pin, a table of each check with expected and measured values, and every fix made during the debug loop.

Pose Game — webcam → Ethernet → TC375 → SPI TFT

AI-generated pose detection on a PC webcam, streamed over Ethernet to a TC375 driving an SPI TFT touchscreen — real-time display and a mini game, all coded by the agent.

Time
Real-time pose game on TC375 ~60 s ▶ Watch

🛠️ What the agent can do

Copilot calls these AURIX MCP tools automatically when relevant:

Tool What it does
ads_create_project Create an iLLD project (Makefile + linker + startup)
build_run Build with the free GCC compiler (finds it on PATH for you)
flash_program Flash .elf / .hex to the board over USB with AURIX Flasher
flash_list_devices List connected kits (AURIXFlasher -detect all): chip, board ID, board hardware version; used to fill in the board revision for board documentation
examples_search · examples_import · examples_read_source Find, inspect, and import public iLLD code examples
documentation_search Search bundled TC2xx/TC3xx/TC4Dx documentation with device-aware routing and physical PDF page citations
documentation_read Read or continue cited source chunks when search evidence is truncated
illd_provision Install / update the public iLLD driver library
project_scan Look at the workspace structure

🐞 AI debugging (optional)

Install the open-source AURIX TCF Debugger for VS Code to close the loop. Its built-in Debug MCP lets Copilot start a debug session on the connected board, set breakpoints, step through code, and read variables, core registers and peripheral registers — in the same session you see in the VS Code debug UI. When a check fails, the agent fixes the code, rebuilds, reflashes and checks again (see Demo 4). Peripheral-register writes always need your confirmation.


🧠 Built-in AURIX skills

The agent ships with expert AURIX workflows. The open skill files live in skills/. Generate Copilot Config copies the selected skills into your project under .github/skills/, so Copilot follows proven, AURIX-specific steps instead of guessing.

Skill What it teaches Copilot
Behaviour Workflow Implement hardware behaviour — blink LED, PWM, UART, SPI, ADC, timers, interrupts, DMA
Code Migration Port code between AURIX devices and families (e.g. TC4D7 → TC334)
Cross-Vendor Migration Evaluate and functionally port NXP, ST, Renesas, or TI MCU demos to AURIX
iLLD Lookup Search iLLD headers for API signatures, registers, and pin maps

✅ Requirements

  • Windows x64. The packaged VSIX is currently built for win32-x64 only.
  • VS Code with GitHub Copilot (Agent mode).
  • An AURIX IDE — AURIX Development Studio or AURIX Configuration Studio. Both are free and give you the GCC compiler and AURIX Flasher.
  • No Python or uv setup needed. The Windows extension includes uv and automatically downloads an isolated Python runtime and the tested MCP packages on first use.
  • Optional, for AI debugging: the AURIX TCF Debugger extension and DAS 8.3.0.1 or later.

The iLLD driver library and code examples are public and downloaded for you — nothing extra to buy.


📦 Packages

  • aurix-ai-agent-extension — VS Code extension: Configurator UI, copilot-instructions.md + skill generator, and MCP server auto-registration.
  • aurix-mcp-server-py — Model Context Protocol server (Python) exposing the AURIX tools above.

See each package's README for installation and configuration details.


❓ FAQ

Which tools does the agent use?

The ones from AURIX Development Studio (ADS) or AURIX Configuration Studio (ACS): the TriCore GCC compiler, AURIX Flasher and the TCF debugger. iLLD and the official code examples are downloaded from Infineon's public GitHub repositories.

How does the AI find these tools?

Open the AURIX AI sidebar, go to the Configurator, select your board and enter the local path of your ADS or ACS installation. The extension passes that path to the MCP server, which then finds the compiler and the flasher on its own.

Which AI clients are supported?

GitHub Copilot in VS Code is the main target; the extension sets everything up for it. The MCP server and the skills are generic, so you can use them with other clients such as Claude Code or Codex: register the server from aurix-mcp-server-py (python -m aurix_mcp_server, with AURIX_ADS_STUDIO_PATH pointing to your IDE) and copy the skills from skills/. This setup is manual and less tested.

Which devices are supported?

TC2xx, TC3xx and TC4xx.

Do I need a license?

No. The agent relies on the free tools in ADS or ACS, plus the public iLLD and code examples. You only need an AI client, such as a GitHub Copilot subscription.

Is it ready for production use?

No. It is meant for evaluation: it uses the existing free tools to speed up development and improve productivity. Review and test the generated code yourself before using it in a product.


License

This project is licensed under the Apache License 2.0.

Bundled Infineon code-example excerpts retain their original per-file notices and Boost Software License 1.0 terms. See the package-level third-party notices.

AURIX™ and TriCore™ are trademarks of Infineon Technologies AG. Use of these marks identifies product compatibility and does not imply endorsement.

About

AURIX AI Agent: Generate, build, and flash Infineon AURIX firmware with GitHub Copilot and MCP in VS Code.

zezhan.github.io/aurix-ai-agent/

Topics

ai-agentaurixembeddedgithub-copilotinfineonmcptricore

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity

Stars

15 stars

Watchers

0 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.