Skip to content

Demonstration of development on Tricore devices using OSS tools

Notifications You must be signed in to change notification settings

AkhilTThomas/tc397_tft

Repository files navigation

TC39 Devlopment with OSS Tools

Demonstrate using open source tricore-gcc toolchain and miniwiggler howto to flash and debug a TC397 device.

Introduction

The primary motivation was to use a miniwiggler to do a basic debugging on aurix devices. Compared to expensive solutions like Lauterbach and UDE this is much cheaper to perform a basic debugging and flashing.

Prerequisites

The repository is tested to work as a docker container on native Linux and WSL2. (I have not tested on Windows docker)

Note

Windows users can use usbipd-win to attach the device to WSL2, the docker container runs in privilege mode and can see all the usb devices. Run winget install usbipd in powershell to install it. wsl-usb-manager provides a simple GUI ontop of usbipd-win.

  • All subsequent dependencies are dockerized
  • Copy the udev rules into /etc/udev/rules.d/
    This will ensure that the miniwiggler is attached to a plugdev user group.

Compiling and programming

Before testing this code example:

  • Power the board through the dedicated power connector

  • Connect the board to the PC through the USB interface

  • Launch repo in container

  • Execution steps : Run the below commands in terminal

    just configure
    just build
    

Run and Debug

  • Flashing and Launch GDB server just flash-blinky

  • Debugging : From vscode launch F5 > Launch miniwiggler
    select the example elf to debug
    tricore-gdb-das is launched automatically as a PreLaunchTask

References

About

Demonstration of development on Tricore devices using OSS tools

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published