TC23x AURIX Development Studio

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User20380
Level 1
Level 1
5 replies posted First reply posted First question asked
When using debugger to flash program onto the target, the following error occurs

The debug instrument IO could not be initialized.
The GDI debug instrument provided the following error message.
An internal error has occurred.
0 Likes
13 Replies
teoBits
Employee
Employee
5 sign-ins 100 replies posted 50 replies posted
Hello,

Can you give us more details on which board and device are you trying to flash?

Many thanks,
teoBits
0 Likes
User20380
Level 1
Level 1
5 replies posted First reply posted First question asked
teoBits,

Thanks. I have purchased the following kit : https://www.infineon.com/cms/en/product/evaluation-boards/kit_aurix_tc234_motorctr/

KIT_AURIX_TC234_MOTORCTR AURIX™ Motor Control Application Kit with TFT Display

The board provided is TC2x4 V1.0 with TC234LP-A-Step Microprocessor.

I am trying to flash the provided Application example "Ap32298_Application_Example_11" using AURIX Development Studio with TASKING compiler, assembler, linker and debugger.

The project is build successfully but at the debugging stage the following error message occurs:

The debug instrument IO could not be initialized.
The GDI debug instrument provided the following error message.
An internal error has occurred.

Thanks
0 Likes
teoBits
Employee
Employee
5 sign-ins 100 replies posted 50 replies posted
Hello,

What version of AURIX Development Studio are you using?
Did the flash operation ever worked?
Did you try flashing a simple code example for your board like the STM_Interrupt_1_KIT_TC234_TFT? Does that work?

Many thanks and best regards,
teoBits
0 Likes
User20380
Level 1
Level 1
5 replies posted First reply posted First question asked
Thanks very much.

I am using Version:1.20 of AURIX Development studio.

Yes, flashing the motor control software via memtool works.

Flashing and debugging with simple code example STM_Interrupt_1_KIT_TC234_TFT also works.

However debugging with motor control code does not work.

Console output from motor control code

Using Debug Target Configuration:
Target: Generic Infineon AURIX Board
Selected CPU type: tc29xb
Register file: C:/Infineon/AURIX-Studio-1.2.0/plugins/com.tasking.ctc.debug.win32.x86_64_1.12.1.0/ctc/include/sfr/regtc29xb.xml
Communication: Universal Debug Access Server
Debug Instrument Module: gdi2mcdtc
Using Flash Configuration:
Monitor : C:\Infineon\AURIX-Studio-1.2.0\plugins\com.tasking.ctc.debug.win32.x86_64_1.12.1.0\ctc\etc\ftc23x.sre
Workspace address : 0x70000000
Number of devices : 7
Sector buffer size : 8192
Device 0:
Address : 0xA0000000,0x80000000
Vendor : Infineon
Chip : TC2_9040k
Subname : Program Flash 0
Width : 32
Size : 2097152
Number of chips : 1
Unused address lines : 0
Device 1:
Address : 0xA0200000,0x80200000
Vendor : Infineon
Chip : TC2_9040k
Subname : Program Flash 1
Width : 32
Size : 2097152
Number of chips : 1
Unused address lines : 0
Device 2:
Address : 0xA0400000,0x80400000
Vendor : Infineon
Chip : TC2_9040k
Subname : Program Flash 2
Width : 32
Size : 2097152
Number of chips : 1
Unused address lines : 0
Device 3:
Address : 0xA0600000,0x80600000
Vendor : Infineon
Chip : TC2_9040k
Subname : Program Flash 3
Width : 32
Size : 2097152
Number of chips : 1
Unused address lines : 0
Device 4:
Address : 0xAF000000
Vendor : Infineon
Chip : TC2_9040k
Subname : Data Flash Bank 0a
Width : 32
Size : 786432
Number of chips : 1
Unused address lines : 0
Device 5:
Address : 0xAF100000
Vendor : Infineon
Chip : TC2_9040k
Subname : Data Flash Bank 0b
Width : 32
Size : 16384
Number of chips : 1
Unused address lines : 0
Device 6:
Address : 0xAF110000
Vendor : Infineon
Chip : TC2_9040k
Subname : Data Flash Bank 1
Width : 32
Size : 65536
Number of chips : 1
Unused address lines : 0
Configuration: TC23x
Starting Debugger...
The debug instrument IO could not be initialized.
The GDI debug instrument provided the following error message.
An internal error has occurred.


Console output from simple code
Using Debug Target Configuration:
Target: Generic Infineon AURIX Board
Selected CPU type: tc23x
Register file: C:/Infineon/AURIX-Studio-1.2.0/plugins/com.tasking.ctc.debug.win32.x86_64_1.12.1.0/ctc/include/sfr/regtc23x.xml
Communication: Universal Debug Access Server
Debug Instrument Module: gdi2mcdtc
Using Flash Configuration:
Monitor : C:\Infineon\AURIX-Studio-1.2.0\plugins\com.tasking.ctc.debug.win32.x86_64_1.12.1.0\ctc\etc\ftc23x.sre
Workspace address : 0x70000000
Number of devices : 3
Sector buffer size : 8192
Device 0:
Address : 0xA0000000,0x80000000
Vendor : Infineon
Chip : TC2_2192k
Subname : Program Flash 0
Width : 32
Size : 2097152
Number of chips : 1
Unused address lines : 0
Device 1:
Address : 0xAF000000
Vendor : Infineon
Chip : TC2_2192k
Subname : Data Flash Bank 0a
Width : 32
Size : 131072
Number of chips : 1
Unused address lines : 0
Device 2:
Address : 0xAF100000
Vendor : Infineon
Chip : TC2_2192k
Subname : Data Flash Bank 0b
Width : 32
Size : 16384
Number of chips : 1
Unused address lines : 0
Configuration: TC23x
Starting Debugger...

Launching configuration: Blinky_LED_1_KIT_TC234_TFT
Loading 'C:\Users\xxx\AURIX-v1.2.0-workspace2\Blinky_LED_1_KIT_TC234_TFT\Debug\Blinky_LED_1_KIT_TC234_TFT.elf'...


I think this is an issue with the debug configuration using tc29xb in the motor control code but I am unsure how to change it.



Thanks
0 Likes
teoBits
Employee
Employee
5 sign-ins 100 replies posted 50 replies posted
Hello,

Yes, that is the problem, it can be that creating the project for the motor control, TC29x device was selected instead of the TC23x. Are you sure that the project you are using is compatible with TC23x?

To overcome your issue, the best and cleanest way would be to create a new project selecting the correct device and then copy-paste all your needed files and check the includes in the project's settings.

Otherwise, you can try to fix your project selecting the correct device in the project settings, but this does not change the iLLDs or any other file related to a different device in your project (therefore it may not work properly).

To change the device:

  • go to Project>Properties
  • on the left open C/C++ General and select "Paths and Symbols"
  • change the value of "__CPU__" to "tc23x"
  • click on Apply and Close
  • delete the .launch file inside your project
  • click on "Rebuild Active Project" button (the dark blue icon)
  • launch the debug session again, and Select "TC23x" as Configuration


BR,
teoBits
0 Likes
User20380
Level 1
Level 1
5 replies posted First reply posted First question asked
4693.attach

Hi,

Where is change the value of "__CPU__"?
0 Likes
teoBits
Employee
Employee
5 sign-ins 100 replies posted 50 replies posted
inside the TAB "#symbols", anyway, I just tried this procedure and i'm afraid it will not work because some internal settings of the project cannot be changed.

The only way to fix your problem would be the first option I wrote:
create a new project selecting the correct device and then copy-paste all your needed files and check the includes in the project's settings
0 Likes
User20380
Level 1
Level 1
5 replies posted First reply posted First question asked
Any chance you can contact the developers of the motor control kit and ask them if they could send me the correct version of the software?

I've just created a new project with TC23x and copied and paste all the files including .cproject.

Build it again but it is still trying to use the CPU type tc29xb.

I am not sure which files to copy and which files to leave.
0 Likes
teoBits
Employee
Employee
5 sign-ins 100 replies posted 50 replies posted
I'll verify if more versions of that software exist.
Anyway, you should only copy the source files, *.c and *.h
0 Likes
User20380
Level 1
Level 1
5 replies posted First reply posted First question asked
Thanks.

teoBits, This is very difficult as the folder structure of the motor control software is completely different from the standard framework project folder structure.

Have you got any ideas?
0 Likes
User20380
Level 1
Level 1
5 replies posted First reply posted First question asked
teoBits wrote:
I'll verify if more versions of that software exist.
Anyway, you should only copy the source files, *.c and *.h


teoBits,

Are you able to put me in touch with the developers of the motor control software to verify if any more versions of the software exist and also contact them directly for technical support?


Thanks
0 Likes
teoBits
Employee
Employee
5 sign-ins 100 replies posted 50 replies posted
Hello,

I cannot. But I verified internally and the only version of motor control project we have is not built for AURIX Development Studio. To make it work with ADS, you need to port it manually, as I was mentioning in the previous posts.

You should create a new project for the board you are using, delete all the libraries and source files inside, copy-paste all the source files (*.h, *.c) from your motor control project into the newly created project in ADS and finally go to the project settings TASKING C/C++ Compiler>"Include Paths", remove everything and manually add all the directories that you have in your project. This should do the trick.

teoBits
0 Likes
User20380
Level 1
Level 1
5 replies posted First reply posted First question asked
Thanks teoBits. I have successfully done so.

Just out of interest, what was the original motor control project build for? Eclipse? Dave?
0 Likes