Hello @danielholala ,
I have checked your use case and the issues you have reported. The Enable FXCOM0 clock functionality that is provided in Peripherals tool is just shortcut for Clocks tool. The Clocks tool provides the same functionality for each top level output in the clock diagram:
marek_neuzil_13-1755261021160.png
Your use-case can be processed in the Clocks tool without switching the tools. The context menu of each top level output contains the Enable command. This functionality just makes the clock enabled by enabling clock gates, dividers, and other elements on the clock path. Your specific requirements must be processed by manual selection of the clock sources and selection of the PLL mode, configuration of the external clock sources (external clocks sources/crystals must also be specified manually according to connection of the board).
For example, in the case you want to use Enable FXCOM0 clock command you can do it this way:
When the main_clk of the FCCLKSEL0 is selected, select the system PLL divided clock and click on the Enable FXCOM0 clock.
marek_neuzil_1-1755260860701.png
Then the main_clk is selected (because this is the only active clock source of the FRGCLKSEL0) and you must select the pll_clk_div as you want to use the PLL output.
When you process the Enable FXCOM0 clock command again, see below:
marek_neuzil_2-1755260860732.png
The PLLDIV divider is enabled:
marek_neuzil_3-1755260860738.png
Please note, that the PLL itself is not used, the PLL is bypassed because the PLL is not configured. It provides two functional modes and other settings that must be specified.
marek_neuzil_4-1755260860752.png
When you for example select the Normal mode the PLL is enabled and 384 MHz frequency is set.
marek_neuzil_5-1755260860763.png
If the board use a crystal, for example 16 MHz, you must set it including capacitors and mode of operation in the XTAL clock source Details settings:
marek_neuzil_6-1755260860786.png
You can select the external clock source and source clock for the PLL:
A clock gate is disabled so you can enable it manually in the Details view setting (click on the element).
marek_neuzil_7-1755260860830.png
Select the Enabled and clocked value:
marek_neuzil_8-1755260860844.png
You can also specify the output frequency in the clock diagram:
marek_neuzil_9-1755260860854.png
And the clock tool selects possible clock dividers and provide the settings to satisfy the requirement:
marek_neuzil_10-1755260860863.png
The selection of the required frequency cause also the lock of the frequency output (the lock icon in the diagram near to the frequency).
If you require a frequency that cannot be achieved using existing clock path (for example 30 MHz of the FXCOMCLK2) the Advance resolver for the FXCOM2 clock can be used:
marek_neuzil_11-1755260860886.png
It provides more complex analysis of the possible clock paths and try to find a possible solution for all requirements and locked settings. In this case it change settings of the main clock and PLL frequency:
marek_neuzil_12-1755260860938.png
The Clocks tool provides advanced support for the complex clock models of modern MCUs that provide many variations of clock paths settings for all peripherals and system modules and sometimes it requires more advanced user configuration for specific requirements.
If you still see any issue or improvement do hesitate to contact me. We are still working on the new features and improvement for customers in next versions of the Config tools.
Best Regards,
Marek Neuzil