hey,,
>>i want to use usart-2 peripheral on MCBSTM32C and i realised the baud rate set was incorrect, (inspite of right calculations) which was because of the incorrect plck-1 (=112.5Mhz, which should be 36Mhz),, also plck-2 and hclk, system clock set are wrong.
>>for clock setup i'm using SystemInit function from system_stm32f10x_cl.c (i took this from keil's example program.)
>>so i tried running an example prog from keil on the board. i flashed Blinky_ULp into the board ,, but still the same problem of incorrect pclk-1, pclk-2, hclk, sysclk etc persisted,,
please help.. i cant understand why example codes work incorrectly !!!!!
hey,,,
the chip on board is stm32f107vc, which is the connectivity line device of stm32f1..
the problem i think present is in hardware debug of keil,in which the dialogue for reset clock control (in peripherals) is not for connectivity line devices,,, but for the others...
i think so because :
(1)it doesn't even show rcc_cnfg2 register which is present only in connectivity devices of stm32f1.... !! (2) it shows setting of only 1 pll in debug (pll),, whereas connectivity line devices have 3 plls(pll1, pll2, pll3) ( and others have only 1 pll)
what should i do to update the dialogue box ????
I had a similar issue and it was due to the HSE clock rate being defined twice and not picking up what I thought I had programmed
On the IDE and project settings its defined and you can also set this with a #define on either the systeminit file so make sure its not picking up the file in keil\arm\rv31
search for the HSE in your code and see if you can find a conflict in what you set