This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48L952ZWT: GIO (enable clock to peripherals)

Other Parts Discussed in Thread: HALCOGEN

I have the GIO requirement to enable the clock to the peripherals.

Set PENA bit by ORing 0x00000100 into the Clock Control Register (CLKCNTRL at 0xFFFFFFD0). This enables clocks to the peripherals.

Where can I find this configuration in the HAL Code Generator GUI?

  • Sarah,
    This is done automatically. You will not see this in the HalCoGen GUI. When you generate the code even without any module drivers selected you will have some basic code to setup the clocks and etc. You should see sys_startup.c and system.c The sys_startup.c will have function call to systemInit() for which you can find in system.c. In the systemInit() it will then call periphInit(). In periphInit() you will see that the peripherals are released from reset. Below line is what the periphInit() will do among other things such as release peripherals from power down mode.

    systemREG1->CLKCNTL |= 0x00000100U;