cancel
Showing results for 
Search instead for 
Did you mean: 

Help Needed: RTC Channel Configuration Issue on SPC58NN84

Veer
Associate

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:

  1. No RTC channel
    • Upon investigation, I found that the SPC58NN84 microcontroller does not have an RTC channel available for configuration. The generated configuration file (Gpt_Cfg.h)
      defines: 

      /* 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

    • There is no mention of any RTC channels.
  2. Configuration Tool:
    • While configuring the GPT channels using the EB tresos tool, I noticed that options for RTC channels were absent, confirming that they are not supported on this microcontroller.
      Veer_1-1728382653353.png

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

0 REPLIES 0