I have two queries:
I tried running the example code C:\Keilmdk\ARM\Boards\Keil\MCBSTM32F400\Blinky with MCBSTM32F400 board along with J-ink Segger debugger and verified the results on the board. I could not run the same under simulation. When i tried entering the debug mode under simulator, the code does not reaches the main.
When I executed the C:\Keilmdk\ARM\Boards\Keil\MCBSTM32F400\Blinky code with MCBSTM32F400 board along with J-ink Segger debugger, based on the number of states taken for execution and the Sec value it shows only 10MHz operating frequency. But, upon entering the debug mode under simulator the initial States and Sec shows 25MHz. From the reference documents, I understand that he operating frequency is to be 168MHz. Actually where can i check the MCU frequency under debug mode.
The STM32f4 is not simulated sufficiently to support your goal.
Check how the clocks and PLL are being set up in the clock configuration code, often found in SystemInit()