Hi @jwkang
Since I unfortunately do not have a board with a S32K324, I did an analysis of all the RTD versions available and I could identify that the patches for version 4.0.0 do not generate all the necessary code.
If you check the S32K3XX_memory_map file attached to the reference manual you will find that all S32K3 devices have CMU 0, CMU 3, CMU 4 and CMU 5; except the K388 which are the only ones that have CMU 6.
The changes to be made are:
Clock_Ip_Cfg_Defines.h
#define CLOCK_IP_REGISTER_VALUES_COUNT (16U)
Clock_Ip_BOARD_InitPeripherals_PBcfg.c
const Clock_Ip_RegisterValueType Mcu_aClockRegisterValues[CLOCK_IP_REGISTER_VALUES_COUNT] = {
/*! @brief User CMU Configuration structure clock_Cfg_0 */
{((uint32*)(IP_CMU_0_BASE + 4U)),0x000000F0U}, /* CMU_FC_0::RCCR */
{((uint32*)(IP_CMU_0_BASE + 8U)),0x00000058U}, /* CMU_FC_0::HTCR */
{((uint32*)(IP_CMU_0_BASE + 12U)),0x0000004AU}, /* CMU_FC_0::LTCR */
{((uint32*)(IP_CMU_0_BASE + 20U)),0x00000000U}, /* CMU_FC_0::IER */
{((uint32*)(IP_CMU_3_BASE + 4U)),0x0000006EU}, /* CMU_FC_3::RCCR */
{((uint32*)(IP_CMU_3_BASE + 8U)),0x0000015EU}, /* CMU_FC_3::HTCR */
{((uint32*)(IP_CMU_3_BASE + 12U)),0x00000139U}, /* CMU_FC_3::LTCR */
{((uint32*)(IP_CMU_3_BASE + 20U)),0x00000000U}, /* CMU_FC_3::IER */
{((uint32*)(IP_CMU_4_BASE + 4U)),0x0000008CU}, /* CMU_FC_4::RCCR */
{((uint32*)(IP_CMU_4_BASE + 8U)),0x00000097U}, /* CMU_FC_4::HTCR */
{((uint32*)(IP_CMU_4_BASE + 12U)),0x00000084U}, /* CMU_FC_4::LTCR */
{((uint32*)(IP_CMU_4_BASE + 20U)),0x00000000U}, /* CMU_FC_4::IER */
{((uint32*)(IP_CMU_5_BASE + 4U)),0x0000008CU}, /* CMU_FC_5::RCCR */
{((uint32*)(IP_CMU_5_BASE + 8U)),0x00000097U}, /* CMU_FC_5::HTCR */
{((uint32*)(IP_CMU_5_BASE + 12U)),0x00000084U}, /* CMU_FC_5::LTCR */
{((uint32*)(IP_CMU_5_BASE + 20U)),0x00000000U}, /* CMU_FC_5::IER */
};
I have not found anything else yet.