Jump to content

Cant compile Marlin for Bigtreetech Octopus Pro with the STM32F446ZET6 Processor

T Lul

Recommended Posts

I am trying to compile Marlin for the octopus Pro but i allways get this error:

Compiling .pio\build\BIGTREE_OCTOPUS_V1_USB\src\src\HAL\STM32\watchdog.cpp.o
Compiling .pio\build\BIGTREE_OCTOPUS_V1_USB\src\src\HAL\shared\Delay.cpp.o
Compiling .pio\build\BIGTREE_OCTOPUS_V1_USB\src\src\HAL\shared\HAL_MinSerial.cpp.o
Marlin\src\HAL\STM32\fast_pwm.cpp: In function 'void set_pwm_frequency(pin_t, int)':
Marlin\src\HAL\STM32\fast_pwm.cpp:77:17: error: conflicting declaration 'const PinName pin_name'
   77 |   const PinName pin_name = digitalPinToPinName(pin);
      |                 ^~~~~~~~
Marlin\src\HAL\STM32\fast_pwm.cpp:74:11: note: previous declaration as 'PinName pin_name'
   74 |   PinName pin_name = digitalPinToPinName(pin);
      |           ^~~~~~~~
Marlin\src\HAL\STM32\fast_pwm.cpp:78:23: error: conflicting declaration 'TIM_TypeDef* const Instance'
   78 |   TIM_TypeDef * const Instance = (TIM_TypeDef *)pinmap_peripheral(pin_name, PinMap_PWM); // Get HAL timer instance
      |                       ^~~~~~~~
Marlin\src\HAL\STM32\fast_pwm.cpp:75:16: note: previous declaration as 'TIM_TypeDef* Instance'
   75 |   TIM_TypeDef *Instance = (TIM_TypeDef *)pinmap_peripheral(pin_name, PinMap_PWM); // Get HAL timer instance
      |                ^~~~~~~~
*** [.pio\build\BIGTREE_OCTOPUS_V1_USB\src\src\HAL\STM32\fast_pwm.cpp.o] Error 1

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...