Search found 7 matches

by chrystal
Tue Jan 31, 2017 5:15 pm
Forum: STM32 Support
Topic: PWM use negative channels
Replies: 9
Views: 8763

Re: PWM use negative channels

Giovanni wrote:Hi,

Would that be the "Combined 3-phase PWM mode" described in the reference manual? the PWM driver is not designed to use that mode.

Giovanni

Yes, I would like to control a BLDC Motor. My generated 3 PWMs are not 120 phase shifted. :(
by chrystal
Tue Jan 31, 2017 1:50 pm
Forum: STM32 Support
Topic: PWM use negative channels
Replies: 9
Views: 8763

Re: PWM use negative channels

Is there any possibilities to shift the phase of Ch2 and Ch3 at 120 Degree with the configuration "STM32_PWM_USE_ADVANCED" ?

Thanks.
by chrystal
Tue Jan 31, 2017 12:09 pm
Forum: STM32 Support
Topic: STM32F4 Disc Board PA9 PWM not working
Replies: 3
Views: 3434

Re: STM32F4 Disc Board PA9 PWM not working

Hi,

Is that pin free on your board? it could be connected to something and driven.

Other point US2ST cannot be used in the configuration structure, that macro is for system tick only, you need to specify the number of timer clock cycles as period in that field.

Giovanni

Thanks for reply. No ...
by chrystal
Tue Jan 31, 2017 3:34 am
Forum: STM32 Support
Topic: STM32F4 Disc Board PA9 PWM not working
Replies: 3
Views: 3434

STM32F4 Disc Board PA9 PWM not working

Hello,

i'm trying to use PA9 as PWM Output. But does not work. The VBUS Led is always on. Pls help me. As you can see on the below image, the blue curve is PA9 PWM Output. The other 2 are PA8 and PA10.

Can anyone pls help me?

#include "ch.h"
#include "hal.h"

static THD_WORKING_AREA ...
by chrystal
Mon Jan 30, 2017 11:45 pm
Forum: STM32 Support
Topic: Clock config STM32F103 Help!
Replies: 3
Views: 3662

Re: Clock config STM32F103 Help!

Giovanni wrote:Hi,

You can make sure by enabling MCO, that way you can measure the actual SYSCLK frequency. Note that the pin has a limit of output frequency, you need to divide the clock by two.

Giovanni

:o Thank you !!
by chrystal
Sat Jan 28, 2017 11:25 pm
Forum: STM32 Support
Topic: Clock config STM32F103 Help!
Replies: 3
Views: 3662

Re: Clock config STM32F103 Help!

I think i did configure the clock correct


#define STM32_NO_INIT FALSE
#define STM32_HSI_ENABLED TRUE // 8MHz HSI RC -> 4MHz PLL Source
#define STM32_LSI_ENABLED TRUE
#define STM32_HSE_ENABLED FALSE
#define STM32_LSE_ENABLED FALSE
#define STM32_SW STM32_SW_PLL // Main clock source selection&#46 ...
by chrystal
Sat Jan 28, 2017 10:15 pm
Forum: STM32 Support
Topic: Clock config STM32F103 Help!
Replies: 3
Views: 3662

Clock config STM32F103 Help!

Hello,

i'm newbie on RTOS and do really like ChibiOs.

I have a custom STM32F103C Board without external Chrystal. I don't know whether i have configured the clock correct on 56Mhz. How do i know which clock does the controller run on?

Thank you in advance!


#define STM32_NO_INIT FALSE
#define ...