cancel
Showing results for 
Search instead for 
Did you mean: 

Pb generating 2 PMW

franck2
Associate II
Posted on November 21, 2014 at 12:04

The original post was too long to process during our migration. Please click on the attachment to read the original post.
22 REPLIES 22
Posted on November 21, 2014 at 21:07

 GPIO_PinAFConfig(GPIOC, GPIO_PinSource2, GPIO_AF_2); // TIM1 PC0 AF2

Should be GPIO_PinSource0, but the datasheet I'm looking at doesn't show it connecting to TIM1
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on November 21, 2014 at 21:11

Ok the F302 on the Nucleo does.

You will need to enable the PWM outputs

/* Tim1 Main Output Enable - TIM1 is special on STM32F3 */
TIM_CtrlPWMOutputs(TIM1, ENABLE);

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
franck2
Associate II
Posted on November 21, 2014 at 21:39

Thanks God it's Friday!!!!

Many many thanks Clive.

We just know that way -Net way and mail exchanges through the ST Forum - but you're really a fabulous Man, with a big M. Never met a human person so involved...

God Bless you! and life treat you kind.

Franck....An ST programmer beginner

________________

Attachments :

Screen_2014-11-21_09-35-54.jpeg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0xk&d=%2Fa%2F0X0000000bhz%2FiD3WfeTx8ct6NQsH409Bd8_4CR5ozIPogqcvCn1R0Oo&asPdf=false