How can we use demo project for T2G starter kit?

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

cross mob
MaKi_350451
Level 5
Level 5
Distributor - TED (Japan)
First comment on KBA 10 likes given 10 solutions authored

Hello, 

How can we use below demo project on T2G starter kit and EWARM ver 8.42.1 .

\Infineon\T2G_Sample_Driver_Library_7.7.0\tviibe1m\src\examples\starter_kit\demo

 

Three projects of  main.cm4.c  , scenario.c , scenario.h  moved in below folder.

\Infineon\T2G_Sample_Driver_Library_7.7.0\tviibe1m\src

 

But we found some errors as below after the build.

error [Pe020]: identifier "CY_TCPWM_PWM_PRESCALER_DIVBY_2" is undefined
error [Pe136]: struct "cy_stc_tcpwm_pwm_config" (declared line 148 of "C:\path\to\common\src\drivers\tcpwm/cy_tcpwm_pwm.h"h) has no field "Cc0MatchMode"

 

Please advice us for this case.

Thank you &  best regards,

0 Likes
1 Solution
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

@MaKi_350451 san

Thank you for using our IFX community.

I checked internally, the starter kit's demo example of SDL(...\tviibe1m\src\examples\starter_kit\demo) is developed based on SDL7.3.0(or earlier version SDL).

But since SDL7.4.0, the SDL updated a lot in cy_tcpwm_pwm.h.

Looks like the starter kit demo example code is not updated at the same time.

In this situation, if you'd like to run the demo project, the easiest way is using SDL7.3.0. 

In addition, please don't forget to add scenario.h and scenario.c in the project before building, as shown as below, by right-clicking the project in the Workspace and choosing "add->add files".

RyanZhao_0-1671524232272.png

Furthermore,  SDL7.3.0 can be used directly for the starker kit demo example.   But if the user would like to use SDL7.4.0 or later SDL for the starker kit demo example, it may need many other modifications in the SDL7.4.0 or later version, because the demo uses a lot of peripherals/blocks of the chip and there are many other updates in the driver in SDL7.4.0 or later version. 

Best Regards, Ryan

View solution in original post

0 Likes
2 Replies
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

@MaKi_350451 san

Thank you for using our IFX community.

I checked internally, the starter kit's demo example of SDL(...\tviibe1m\src\examples\starter_kit\demo) is developed based on SDL7.3.0(or earlier version SDL).

But since SDL7.4.0, the SDL updated a lot in cy_tcpwm_pwm.h.

Looks like the starter kit demo example code is not updated at the same time.

In this situation, if you'd like to run the demo project, the easiest way is using SDL7.3.0. 

In addition, please don't forget to add scenario.h and scenario.c in the project before building, as shown as below, by right-clicking the project in the Workspace and choosing "add->add files".

RyanZhao_0-1671524232272.png

Furthermore,  SDL7.3.0 can be used directly for the starker kit demo example.   But if the user would like to use SDL7.4.0 or later SDL for the starker kit demo example, it may need many other modifications in the SDL7.4.0 or later version, because the demo uses a lot of peripherals/blocks of the chip and there are many other updates in the driver in SDL7.4.0 or later version. 

Best Regards, Ryan

0 Likes
MaKi_350451
Level 5
Level 5
Distributor - TED (Japan)
First comment on KBA 10 likes given 10 solutions authored

Ryan san,

Thank you for your answer.

Best Regards,

0 Likes