Switching clocks for SCTL



I'm looking for a way to be able to run a SCTL with multiple clocks (one clock at a time of course). i.e. allow the user to select the clock of choice during or before code execution with some form switch. 


Our custom PCB has a 40MHz and 100MHz external clock going in the SOM and I want to be able to select a clock without recompiling or manually rerouting the PCB tracks.


I've tried the 'Select' and a case structure function with the clock references but that won't cut it due to dynamic refnums not being supported. (see picture)


Maybe someone has some suggestions that don't require adding dedicated PCB switches.




0 Kudos