Skip to main content
Mikhail Sementsov
Associate
September 19, 2017
Question

Troubles with RCC in STM32CubeMX

  • September 19, 2017
  • 3 replies
  • 921 views
Posted on September 20, 2017 at 00:46

Hi!

I found couple of troubles while programming STM32F030F4 with STM32CubeMX.

1. I used simple code like

while(1)

   HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_3);

   HAL_Delay(1);

}

which must generate 500 Hz square wave on PA3. It is actually work for 

STM32CubeMX V. 4.18.0, but 4.22.1 version gives 250 Hz signal.

2. I tried to use PLLCLK source (with the same code), but it absolutely doesnt work with any settings in V. 4.18.0 and      V. 4.22.1 - there is no signal, just little ripples on PA3. With HSE and HSI sources without PLL it works. Some months ago I used V. 4.20.1 without this trouble. Can you provide

a download link to

this version?

#pll #cubemx #stm32f0 #rcc
This topic has been closed for replies.

3 replies

Technical Moderator
September 20, 2017
Posted on September 20, 2017 at 10:25

Hi

Sementsov.Mikhail

,

Could you please share your .ioc file for more check your case?

Kind Regards

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Mikhail Sementsov
Associate
September 20, 2017
Posted on September 20, 2017 at 18:26

https://drive.google.com/file/d/0B4JbVdnsjGUKNmFHaEtYdk5zVDQ/view?usp=sharing

There is three KEIL uVision V5.20.0.0 projects (description in README.txt) including .ioc files.

Jeanne Joly
Associate
February 6, 2018
Posted on February 06, 2018 at 13:50

Hi

Sementsov.Mikhail

Sorry for the late answer.

I was trying to reproduce your LED toggling issue on top of CubeMX4. I was using a F4 nucleo board but the LED toggle at 500Hz when the HCLK is set to 1ms.

No issue on that point. Do you still have this issue on the latest CubeMX release?

Regarding your second point, I suppose that you mean that the System Clock mux was configured with PLLCLK. I can't see any issue as well. If there is still an issue, are you sure that your clock is correctly configured (PLLCLK, HCLK, HSI...)?

BR. Jeanne