Skip to main content
Use this workflow to move firmware to a different MCU, board, or SDK while keeping the behavior your product depends on. Before porting any code, define what the new target must preserve: interfaces, timing, startup behavior, peripheral functions, and resource limits.

Choose a guide

Identify both targets

Record the source and destination MCU, package, board revision, SDK, toolchain, and build configuration in EMBEDDER.md, so every request works from the same facts. For a custom board, or one the catalog doesn’t cover, add the target documentation and upload the schematics.
If the destination is an AURIX Development Studio project, follow AURIX ADS and Flasher to prepare command-line builds on Windows. If the project already has a working build workflow, record its commands in EMBEDDER.md instead.

Capture the source baseline

Before you change anything, run the existing tests and the hardware checks you care about on the source board. Save the outputs the new target must match.
Use the same workload and tolerances on both boards. List any differences you accept, so they aren’t mistaken for regressions later.

Compare hardware constraints

Run /plan to switch to Plan mode. Then ask Embedder to compare clocks, reset sequences, registers, pin routing, interrupts, DMA, memory layout, startup, and tools:
Check the package and the board routing, not only the MCU’s alternate-function table. A pin that supports the peripheral may be reserved or unreachable on the board.

Review an ordered plan

Still in Plan mode, ask for the plan. Name both targets, what to preserve, and how to verify it:
A good plan builds the target image first, then brings up an observation path, ports one service at a time, and verifies each service’s consumers. Check that it lists the affected files, generated-code boundaries, tests, and a recovery path if bring-up fails. To change the plan, reply with what to change. To start implementation, approve it: in VS Code, select Approve & Execute. Embedder switches to Act mode and starts the plan. See Plan mode for the approval options in VS Code and the terminal UI.

Port one module at a time

  1. Produce the smallest target image with the correct startup and linker setup.
  2. Establish UART, RTT, or another observation path.
  3. Move one clock, GPIO, transport, or timing service.
  4. Run its focused tests and target check.
  5. Move to dependent modules only after the lower layer works.
Check every register value against the destination reference manual. Values copied from another family can build cleanly and still be wrong.

Verify equivalent behavior

Repeat the baseline checks on the new target, with the same workload and tolerances:
Save repeatable bench checks as hardware scripts so later changes use the same procedure. Switch to Debug mode when you need to inspect target state. Preserve a fault before you reset or reprogram the board. Finish by updating EMBEDDER.md with the destination’s build, flash, and test commands, and record any behavior that is still unverified. See Supported hardware for board setup references.
Last modified on November 13, 2026