Demonstrate using open source tricore-gcc toolchain and miniwiggler howto to flash and debug a TC397 device.
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.
The repository is tested to work as a docker container on native Linux and WSL2. (I have not tested on Windows docker)
- Download the following into the .devcontainer folder
- DAS server the MCD server application
- Aurix Flasher Tool
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 aplugdev
user group.
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