I have a problem with output clocks on a dedicated pin clk1p (N13).
The CCOSR register configured to enable system clock output / 2 and divided by 5. Using clko1.
CCM->CCOSR = 0; CCM->CCOSR = CCM_CCOSR_CLKO1_SEL(0x01) | CCM_CCOSR_CLKO1_DIV(4); CCM->CCOSR |= CCM_CCOSR_CLKO1_EN(1);
On a N13 pin i do not see any clock, only high level. May be i missed something?
CCM_CLK1_P (N13) is one of PLL input sources.
What you want is GPIO_SD_B0_04 (H2), the alt6 function is CCM_CLKO1, add below code in your app: