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

AURIX™ Development Studio Forum Discussions

User21290
Level 1
Level 1
First reply posted First question asked
Hello Forum !

I am using the AURIX TC234 eMotorDrive Kit (https://www.infineon.com/cms/en/product/evaluation-boards/kit_aurix_tc234_motorctr/) and need to implement FOC. On the website of myICP is an example project that I downloaded, which is called "Ap32298_eMotor_Application_Example_v1_1". It is the only example provided and I can not open it in the AURIX Development Studio, because the folder structure is different. I also checked on the github for example projects but ther are none. Therefore I wanted to ask If anyone has an example project for the eMotor Drive Kit TC234 that I could use in the Development Studio ? I would be thankful for any help or ideas.

Bests wl3717
0 Likes
2 Replies
CookieMonster11
Employee
Employee
First solution authored 10 replies posted 5 replies posted
Hey wl3717,

the Aurix Development Studio offers new features and content with each release, but not all code examples from the past have been ported so far.
Not sure if this is planned for the eMotorDrive Kit though. ADS changed the folder structure to make it more efficient and easy to work with it. Probably you could copy the relevant files into ADS from the file, the code itself will be compatible more or less and is not bound to be imported to Github examples only.
0 Likes
User21290
Level 1
Level 1
First reply posted First question asked
Dear CookieMonster112 !

Thank you for your reply ! So I started migrating the complete Ap32298_eMotor_Application_Example_v1_1 example to ADS. As it is in the base framework for the TC27x but I have a TC234 I first created a TC234 project in the ADS and then copied all the files. However I realized that the version of the iLLD is different so I also copied all the old drivers to the new project. Now I get the errors:
Description Resource Path Location Type
ctc E208: syntax error - token ";" inserted before "ACT_TB" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 260 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "CM0" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 275 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "CM1" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 276 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 272 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "ENDIS_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 258 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "ENDIS_STAT" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 259 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "FUPD_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 263 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "GLB_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 257 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "INT_TRIG" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 264 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "OUTEN_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 261 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "OUTEN_STAT" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 262 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "RDADDR" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 271 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "SR0" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 273 C/C++ Problem
ctc E208: syntax error - token ";" inserted before "SR1" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 274 C/C++ Problem
ctc E208: syntax error - token "" inserted before "ACT_TB" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 260 C/C++ Problem
ctc E208: syntax error - token "" inserted before "CM0" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 275 C/C++ Problem
ctc E208: syntax error - token "" inserted before "CM1" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 276 C/C++ Problem
ctc E208: syntax error - token "" inserted before "CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 272 C/C++ Problem
ctc E208: syntax error - token "" inserted before "ENDIS_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 258 C/C++ Problem
ctc E208: syntax error - token "" inserted before "ENDIS_STAT" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 259 C/C++ Problem
ctc E208: syntax error - token "" inserted before "FUPD_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 263 C/C++ Problem
ctc E208: syntax error - token "" inserted before "GLB_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 257 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_AGC_ACT_TB" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 260 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_AGC_ENDIS_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 258 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_AGC_ENDIS_STAT" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 259 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_AGC_FUPD_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 263 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_AGC_GLB_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 257 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_AGC_INT_TRIG" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 264 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_AGC_OUTEN_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 261 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_AGC_OUTEN_STAT" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 262 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_CH_CM0" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 275 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_CH_CM1" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 276 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_CH_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 272 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_CH_RDADDR" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 271 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_CH_SR0" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 273 C/C++ Problem
ctc E208: syntax error - token "" inserted before "Ifx_GTM_ATOM_CH_SR1" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 274 C/C++ Problem
ctc E208: syntax error - token "" inserted before "INT_TRIG" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 264 C/C++ Problem
ctc E208: syntax error - token "" inserted before "OUTEN_CTRL" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 261 C/C++ Problem
ctc E208: syntax error - token "" inserted before "OUTEN_STAT" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 262 C/C++ Problem
ctc E208: syntax error - token "" inserted before "RDADDR" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 271 C/C++ Problem
ctc E208: syntax error - token "" inserted before "SR0" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 273 C/C++ Problem
ctc E208: syntax error - token "" inserted before "SR1" IfxGtm_cfg.h /IDP_motor_control/Libraries/iLLD/TC23A/Tricore/_Impl line 274 C/C++ Problem

Which all seem to be in the IfxGtm_cfg.h file. Did I miss something while coping the iLLDs or do I have to set something different in the compiler ? Does it make more sense to keep the new drivers and try to adapt the existing code to work with them ?
Thank you and best regards
wl3717
0 Likes