JTAG Debugging – Infineon Aurix Chips

Infineon AURIX TC3xx (or TC2xx) series chips include the corresponding Triboard development board, and the official JTAG hardware box is miniWiggler, which also contains the FTDI USB2JTAG chip:JTAG Debugging - Infineon Aurix ChipsAlthough it is an FTDI chip, it does not work with the open-source openocd, which is used by the FlysWattery hardware box. The corresponding software provided by Infineon for openocd is called DAS, which stands for Device Access Server. It is installed along with the Aurix Development Studio (ADS) or can be downloaded separately.DAS consists of an exe file and some dll support library files. When a JTAG tool is started, this UDAS.exe will be launched:JTAG Debugging - Infineon Aurix ChipsDAS itself comes with some small JTAG tools:JTAG Debugging - Infineon Aurix ChipsFor example, the tool below can restart via JTAG, read and write registers, etc.:JTAG Debugging - Infineon Aurix ChipsAmong them, Device Info can provide more JTAG-related information:JTAG Debugging - Infineon Aurix ChipsAn important application of JTAG is Memtool, used for erasing and writing Flash. As shown in the figure below, clicking Connect establishes a JTAG connection with the debug board:JTAG Debugging - Infineon Aurix ChipsFor software JTAG debugging, Infineon provides a free ADS. The ADS defaults to using the Tasking toolchain, including the compiler and debugger.When you click on “Debug Configurations,” you can see that besides the Tasking Debugger, there is another option: winIDEA Debugger:JTAG Debugging - Infineon Aurix ChipsSoftware projects may not be built using ADS and the Tasking toolchain. A typical case is using the closed-source PXROS operating system from Hightec and its GCC compiler. To debug such software projects, you can first start an open-source Aurix project through ADS in debug mode, then launch winIDEA, and in the winIDEA Session Configuration, replace it with the elf file generated by your own software project:JTAG Debugging - Infineon Aurix ChipsWhy start winIDEA in debug mode from ADS? One possible reason is that starting winIDEA directly may not obtain a license. winIDEA is a third-party tool from iSYSTEM:JTAG Debugging - Infineon Aurix ChipsWhen starting debugging, pay attention to the Download Program option.When ADS enters debug mode, it may flash the elf of the open-source project into the chip. If you want to debug your own software project’s elf, you may need to re-flash your elf into the chip using Memtool.If the project is compiled under Linux and winIDEA is Windows software, you can performsource code path remapping:JTAG Debugging - Infineon Aurix Chips

Leave a Comment