Skip to content

How to use/enable STM32 timer channels  #562

Description

@waltergallegog

I would like to use the channels features of STM32 timers, but I'm unsure if this is already supported, or how to use them.

For example, Timer10 of the STM32F4 provides channels with different configurations, mainly:

  • Output compare, to generate PWMs.
  • Input capture, to measure events.

In STM32_Timer.cs I see that these features seem to already be in place, however I have tried them but they did not work.

Both of these features require the use of a GPIO, in output or input mode, respectively. The GPIO to use is fixed and different for each timer, as can be seen when configuring the firmware, for example from CubeMX. However, from the renode platform description examples of the STM32 family, I can not find a platform that actually connects any of the timers to the required GPIO.

  • Is the channels feature supported?
  • How can I enable/use it?
  • How can I indicate the GPIO to use for each Timer?

Thanks.

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