S32DS generates PCFS ClockSourceFrequency = 0 for S32G399A Hi, When generating a clock configuration from S32 Design Studio, I'm noticing that it's setting the PCFS source frequency to 0, even though the Mcu component shows the correct value (image attached). This causes invalid registers to be programmed. When I'm in the Clocks tab and look at the preview of Clock_Ip_ _PBcfg.c, I see the expected values: /* PCFS initialization. */
{
#if CLOCK_IP_PCFS_NO > 0U
{
CORE_PLL_DFS1_CLK,
50U,
1U,
XBAR_2X_CLK,
800000000U,
},
#endif
#if CLOCK_IP_PCFS_NO > 1U
{
ACCEL_PLL_PHI1_CLK,
50U,
1U,
PFE_PE_CLK,
300000000U,
},
#endif
{
RESERVED_CLK,
0U,
0U,
RESERVED_CLK,
0U,
},
}, However when the code is actually generated via Update Code, I see the following output: /* PCFS initialization. */
{
#if CLOCK_IP_PCFS_NO > 0U
{
CORE_PLL_DFS1_CLK,
50U,
1U,
XBAR_2X_CLK,
0U,
},
#endif
#if CLOCK_IP_PCFS_NO > 1U
{
ACCEL_PLL_PHI1_CLK,
50U,
1U,
PFE_PE_CLK,
0U,
},
#endif
{
RESERVED_CLK,
0U,
0U,
RESERVED_CLK,
0U,
},
}, Note 800000000U and 300000000U being set to 0, the rest of the file is the same. Because of these values not being set, I am experiencing an issue where the debugger disconnects because clock ramping does not occur as expected. If I try modifying the generated code to add the values back, it works fine. Is this a known issue? Is there a way to get the values into the generated code without hand modifying the files? Versions: S32 Design Studio 3.6.0 (build 3.6.0.202411280511) S32 Configuration Tools 1.8.0 (Clocks 14.0, Peripherals 15.0) RTD 5.0.0 (S32_RTD_5_0_0_D2410), configuration data PlatformSDK_S32XX_4_0_0 S32G399A, Cortex-M7_0 Thank you! Re: S32DS generates PCFS ClockSourceFrequency = 0 for S32G399A Hello, @cpearson
Thanks for the post.
1. For RTD5.0.0, as what specified in its release notes, it is delivered as an Update Site for S32 Design Studio "S32 Design Studio IDE 3.5 - Update 13" and configuration components were developed using "S32 Design Studio IDE 3.5 - Update 13", may I know if you had also tested on S32DS3.5.13 or later version of 3.5.x to check if the issue also exist?
2. If the issue is also shown on 3.5.13, would you mind introducing more details about the steps for triggering it(via any existing example project in RTD or customized project?) I would reproduce and investigate on it.
BR
Chenyin Re: S32DS generates PCFS ClockSourceFrequency = 0 for S32G399A Hi Chenyin, Thank you for the reply. 1. I haven't tested on 3.5.13, we use S32DS 3.6.0. Is 3.6.0 supported with RTD 5.0.0? According to the 3.6.0 release announcement it seems like it should be. 2. I can reproduce the issue on 3.6.0 with the RTD 5.0.0 example project Mcu_Example_S32G399A_M7 - In Clocks tool, select clock configuration Config1. On MC_CGM_0_MUX_0, set "Clock PCFS12 under MCU control" to Enabled. - In Peripherals tool, go to Mcu_1 > McuModuleConfiguration > McuClockSettingConfig > Select 1 > McuCgm0SettingConfig > McuCgm0PcsConfig. Check "Mcu Clock PCFS under MCU control" for PCFS_12. Source frequency should show 800000000. After this, the Clocks tool's code preview on Clock_Ip_PBcfg.c should show clock_Cfg_1 PCFS entry as { CORE_PLL_DFS1_CLK, 50U, 1U, XBAR_2X_CLK, 800000000U }. After running "Update Code", generate/src/Clock_Ip_PBcfg.c should show clock_Cfg_1 PCFS entry as { CORE_PLL_DFS1_CLK, 50U, 1U, XBAR_2X_CLK, 0U }. Please let me know if you need more instructions for reproducing. Best regards, Carter Re: S32DS generates PCFS ClockSourceFrequency = 0 for S32G399A Hello, @cpearson
Thanks for your detailed description.
I have reproduced the issue on my side and is now investigating on it.
I will keep you informed of any updates as they become available.
BR
Chenyin
View full article