Skip to content

Potential issue with timer IRQ handlers #25

@dresco

Description

@dresco

Have noticed something while troubleshooting my stepper spindle issues (was just an incorrect timer IRQ handler name - difference with the H7 part).

However, some of the handlers have two timer sources, and the existing code doesn't seem to handle this correctly? An example for the F7 would be TIM1_UP_TIM10_IRQHandler. This currently assumes the signal has come from TIM1, and then the TIM10 equivalent references TIM10_IRQHandler which doesn't exist.

I think the handler needs to check the SR register for all potential sources, and call _irq_handler() accordingly. However, am not clear how this would affect the existing LAST_TIDX logic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions