2024-10-08 3:25 AM
Hello team,
I am currently working on configuring the GPT (General Purpose Timer) MCAL module for the SPC58NN84 microcontroller. While I have successfully configured PIT channels 0 and 1 for my project, I am encountering an error related to RTC (Real-Time Clock) channels during compilation.
Error Message:
In file included from C:/STMicroelectronics/SPC58XE-Nxx_MCAL40_101_Signed/Gpt_TS_T2D42M10I1R0/src/Gpt_NonASR.c:79:0:
C:/STMicroelectronics/SPC58XE-Nxx_MCAL40_101_Signed/Gpt_TS_T2D42M10I1R0/include/Gpt_LLD.h:386:52: error: 'GPT_RTC_CHAN_NUM' undeclared here (not in a function)
extern VAR(uint8, GPT_VAR) GPT_LLD_RTC_HardwareMap[GPT_RTC_CHAN_NUM];
Findings:
/* FOR GTM PIT STM RTC */
/**
* @brief The number of STM HW channels
*/
#define GPT_STM_CHAN_NUM 12U
/**
* @brief The number of PIT HW channels
*/
#define GPT_PIT_CHAN_NUM 9
/**
* @brief The number of GTM HW channels
*/
#define GPT_GTM_CHAN_NUM 48
Given these findings, I would like to ask the community for guidance on how to resolve the compilation error related to GPT_RTC_CHAN_NUM.
Specifically:
What steps should I take to ensure that my project compiles without errors related to RTC?
Are there any known issues or specific configurations I should be aware of when working with the SPC58NN84?
Any insights or suggestions would be greatly appreciated!
Thank you in advance for your help!
Veer
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.