Skip to content

How to support stm32f4 board with less peripherals (e.g. TIM) #2251

Open
@jakub-m

Description

@jakub-m

I want to add support for the stm32f401re Nucleo board. The existing src/machine/machine_stm32f4.go for this family of chips uses definitions for peripherals that do not exist for the stm32f401 family. For example, TIM13:

src/machine/machine_stm32f4.go:278:28: TIM13 not declared by package stm32

Looking at ./src/device/stm32/stm32f401.go I see that there are TIM1 to TIM11.

Question: how to modify machine_stm32f4.go so it is still usable for different chips of stm32f4 family, even those with less peripherals? Should I maybe exclude stm32f401 from machine_stm32f4.go and re-implement everything, or should I make machine_stm32f4.go somehow more generic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about usage of TinyGostm32

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions