- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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".
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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".
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ryan san,
Thank you for your answer.
Best Regards,