Skip to content

Update stm32_mcu.cpp - #568

Closed
O-to-the-o wants to merge 1 commit into
simplefoc:masterfrom
O-to-the-o:patch-1
Closed

O-to-the-o wants to merge 1 commit into
simplefoc:masterfrom
O-to-the-o:patch-1

Conversation

@O-to-the-o

@O-to-the-o O-to-the-o commented Oct 5, 2026 •

Copy link
Copy Markdown

Fixes compile error for type missmatch not allowing compilation for stm32 targets

error:
.pio/libdeps/nucleo/Simple FOC/src/drivers/hardware_specific/stm32/stm32_mcu.cpp:126:20: error: cannot convert 'TIM_HandleTypeDef*' to 'TIM_TypeDef*'
126 | enableTimerClock(handle);
| ^~~~~~
| |
| TIM_HandleTypeDef*

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any architectures/sensors/motors that the PR is targeting if appicable.

The best approach would be to create an issue and reference it in this pull request.
Example:

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Test Configuration/Setup:

  • Hardware:
  • IDE: Arduino/Platformio
  • MCU package version (stm32duino/arduino-esp32/..)

IMPORTANT when opening the pull request

  • Your pull request MUST target the dev branch on this repository. By default you'll probably target master, make sure to change it.

Fixes compile error for type missmatch not allowing compilation for stm32 targets

error:
.pio/libdeps/nucleo/Simple FOC/src/drivers/hardware_specific/stm32/stm32_mcu.cpp:126:20: error: cannot convert 'TIM_HandleTypeDef*' to 'TIM_TypeDef*'
  126 |   enableTimerClock(handle);
      |                    ^~~~~~
      |                    |
      |                    TIM_HandleTypeDef*
@O-to-the-o O-to-the-o closed this Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant