2017-09-19 03:46 PM
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 #rcc2017-09-20 01:25 AM
Hi
Sementsov.Mikhail
,Could you please share your .ioc file for more check your case?
Kind Regards
Imen
2017-09-20 09:26 AM
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.
2018-02-06 04:50 AM
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