2021-09-06 11:11 AM
We have a project running with TIM input signal and ATOM outputs and are now trying to use the MCS, we have looked at the GTM DPLL Test application and done some modification to the MCS program. Are there any tricks or options needed to compile the MCS program with SPC5?
Solved! Go to Solution.
2021-09-07 08:13 AM
Hello Lhase ,
You can check the rules.mk located in spc5_gtm_component_rla.
Best regards
Erwan
2021-09-07 08:13 AM
Hello Lhase ,
You can check the rules.mk located in spc5_gtm_component_rla.
Best regards
Erwan
2021-09-07 11:16 AM
Thanks for the quick reply Erwan,
Yes we found the rules and have it up and running with the compiler now.
Are there any limits to code size or anything else that we need to keep in mind?
/Lars
2021-09-13 07:49 AM
Hello Lars,
Please see the document at link: https://www.st.com/resource/en/reference_manual/rm0361-generic-timer-module-specification-revision-1551-stmicroelectronics.pdf
This is the reference manual for GTM on SPC572L ST MCU.
The number of MCS instance on this micro is 2 (mcs0 - mcs1).
The chapter 14 of GTM RM describes the MCS memory configuration, in the available SPC5Studio test application a "default" memory configuration have been used.
Best Regards,
Emanuele
2021-09-13 08:33 AM
Thanks for the help Emanuele,
I quick look in the reference manual and the registers when running shows that in GTM_DPLL_CTRL_3 it´s not possible to enable AEN15 however we try.
It turns out that the gtm_dpll.c file need a slight adjustment < 15UL should be changed to < 16UL (attached picture)
Now everything is up and running as it should, and yes 2 mcs on this one but we plan to use all 3 mcs on the SPC574K soon.
Best Regards,
Lars