Skip to main content
cqz98
Associate
December 20, 2013
Question

bug report: problem with 4 Channel output compare mode of TIM2

  • December 20, 2013
  • 2 replies
  • 689 views
Posted on December 20, 2013 at 06:53

I used STM32F407 to generate pulse output in 4 channel of TIM2 , these 4 channels are configured in output compare mode and toggle mode, which compare value are DMA transfered. Every channel works fine when working indepently, but the 4th channel output becomes bad when these 4 channels work simultaneously. 

In my project, every channel have 4 compare value in one timer period, it seems 4th channel DMA only transferred 2 value for comparision.

Does any have ideas?  Thanks a lot! 0690X00000602qIQAQ.jpg

    This topic has been closed for replies.

    2 replies

    cqz98
    cqz98Author
    Associate
    December 20, 2013
    Posted on December 20, 2013 at 07:01

    The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6dT&d=%2Fa%2F0X0000000bsC%2F9yNmnuJtQBgex8tHh4K0EJEG7q5AzgD1E1yUdrJYUK0&asPdf=false
    cqz98
    cqz98Author
    Associate
    December 20, 2013
    Posted on December 20, 2013 at 07:51

    I looked into the DMA registers, the NDTR register of DMA1_Stream7(corresponding to 4th channel) becomes 2, while other channels is 4. This value seems corrupted by hardware internally. Will it be STM32F407 serious MCU's hardware bug?  I tried STM32F407IG and STM32F407ZG, the bug exists in both model chip.