T Lul Posted December 25, 2021 Share Posted December 25, 2021 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 Quote Link to comment Share on other sites More sharing options...
BTT Tony Posted December 27, 2021 Share Posted December 27, 2021 Hi, this seems to be the compilation environment you chose or the name of the motherboard is wrong. Quote Link to comment Share on other sites More sharing options...
BTT Tony Posted December 27, 2021 Share Posted December 27, 2021 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.