Skip to main content
lanchon
Associate III
September 10, 2009
Question

ATN: IMS Systems Lab - STM32 FOC library

  • September 10, 2009
  • 5 replies
  • 1246 views
Posted on September 10, 2009 at 12:09

ATN: IMS Systems Lab - STM32 FOC library

This topic has been closed for replies.

5 replies

lanchon
lanchonAuthor
Associate III
May 17, 2011
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.

martinpec19
Associate II
May 17, 2011
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.

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

hi Billino,

thank you very much for your help.

regards,

lanchon

stello
Visitor II
May 17, 2011
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.

cagdasyet2
Visitor II
May 17, 2011
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.