Skip to content

[Bug] Incorrect pwm frequency #205

Open
@mstumbra

Description

@mstumbra

tim1(dp.TIM1, 144, 1.mhz().into(), &clocks)
leads to actual timer frequency of 0.5 MHz, as code doesn't set/takes into account tim1sw bit in RCC CFGR3 register
Same thing with other timers and possibly peripherals most likely. (Occurs only when MCU is running with max frequency)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions