Hi all,
I am using processor STM32F107VC and I need to configure RCC as it is shown on the screen below (red path):
imageshack.us/.../
But I have some problem with configure the register RCC_CFGR2 and I belive that Keil uVsion 4 wich I use have some bug or something because he do not show anything about register RCC->CFGR2
in the RCC->CFGR2 are parameters to set up like PREDIV2, PREDIV1, PLL2MUL - all of them are just skipped by my procesor and I cannot set System Clock in correct frequency. As a result I get the blue path what I really do not like.
but look at this screen: imageshack.us/.../
in debug mode , Keil do not show anything about register RCC-CFGR2 . maybe this is related with that the other processors from the same family really do not have that register, and Keil missed that fact?
Also I attached full map of registers of RCC from STM32F10 datasheet. imageshack.us/.../
I have Keil uVision v4.03 but I already have tried with v4.22 and there was the same situation
Maybe there is some lib files to update but I do not know where.. Please advice...
If you want I can attach here the Source Code... but I am doing setup other registers in the same way and in other cases I have 100% sure that they are working and I see the results of that
The header file is good with all registers, and function peripherals. But, the "debug interface" without some of them. For example, the code compile without any error for APB1ENR |=0x08. It is for enable STM32F10xB /TIM5 clock. But, under debug that is malfunction. After command, the APB1ENR value is 0.
So it's the simulator you are complaining about?
But you did read this information about your processor? http://www.keil.com/dd/chip/4889.htm
It says in highlighted box:
NOTE Simulation for this device is provided by the default peripheral simulation driver. Complete peripheral simulation is not available at this time.
But, the code is not work even by normal run, not debug/simulation. I'm concerning that registers are masked/disable by compiler.
Does anyone has simple code which enable TIM5 as source to toggle a I/O pin? Function can be measure by scope.