This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pll and clock setup issue on mcbstm32c

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 !!!!!

Parents
  • 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

Reply
  • 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

Children
No data