cancel
Showing results for 
Search instead for 
Did you mean: 

ATN: IMS Systems Lab - STM32 FOC library

lanchon
Associate II
Posted on September 10, 2009 at 12:09

ATN: IMS Systems Lab - STM32 FOC library

5 REPLIES 5
lanchon
Associate II
Posted on May 17, 2011 at 10:15

authors of the STM32 FOC library please read

http://www.st.com/mcu/forums-cat-6785-23.html

.

thank you very much.

stello
Associate II
Posted on May 17, 2011 at 10:15

Dear Sir,

here is the description of the STM32 behavior TIM1 when in debug mode:

Normal mode (DBG_TIM1_STOP bit reset): the timer continues to operate normally - May be dangerous in some case since a constant duty cycle is applied to the inverter (interrupts not serviced)

Safe mode (DBG_TIM1_STOP bit set): the timer is frozen and PWM outputs are shut down - Safe state for the inverter. The timer can still be re-started from where it stops.

Thanks to your feedback, we'll take care of better explaining it in the reference manual.

lanchon
Associate II
Posted on May 17, 2011 at 10:15

hi Billino,

thank you very much for your help.

regards,

lanchon

martinpec19
Associate II
Posted on May 17, 2011 at 10:15

Hi.

Has anyone tried this functionality(stoping timer and disabling output) with timer8.

It seems that DBGMCU ->CR = 0x100000; has no effect, outputs are still on.

Regards, Martin.

cagdasyet2
Associate
Posted on May 17, 2011 at 10:15

This code seems fine, Tim 1 2 3 4 stops in debug mode while in break points.

int main(void)

{

#ifdef DEBUG

debug();

#endif

DBGMCU ->CR = 0x3C00; //Timerlar Debug Modda durur.

Thanks for your help.