Rumba+Marlin (errors compiling code)

I am trying to configure my Rumba32 with Marlin on arduino in order to use it on my ender 3. I am using marlin bugfix-2.0 and downloaded the stm32duino 2.6 since I heard the newest version (2.7.1) doesn't work. Every time I try to compile the code I get an error. First it was an error with #define FAN_SOFT_PWM, so when I removed the //, that was fixed. However, now I am getting this error message:

In file included from /Users/joshbass/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.6.0/cores/arduino/stm32/clock.h:19,
from /Users/joshbass/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.6.0/cores/arduino/wiring_time.h:23,
from /Users/joshbass/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.6.0/cores/arduino/wiring.h:38,
from /Users/joshbass/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.6.0/cores/arduino/Arduino.h:36,
from /Users/joshbass/Downloads/Marlin-bugfix-2.0.x 3/Marlin/src/HAL/shared/Marduino.h:36,
from /Users/joshbass/Downloads/Marlin-bugfix-2.0.x 3/Marlin/src/HAL/STM32/HAL.h:28,
from /Users/joshbass/Downloads/Marlin-bugfix-2.0.x 3/Marlin/src/HAL/HAL.h:30,
from /Users/joshbass/Downloads/Marlin-bugfix-2.0.x 3/Marlin/src/inc/MarlinConfig.h:31,
from /Users/joshbass/Downloads/Marlin-bugfix-2.0.x 3/Marlin/src/HAL/STM32/HAL.cpp:27:
/Users/joshbass/Downloads/Marlin-bugfix-2.0.x 3/Marlin/src/HAL/STM32/HAL.cpp: In static member function 'static void MarlinHAL::init()':
/Users/joshbass/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.6.0/cores/arduino/stm32/stm32_def.h:68:17: error: the value of 'SystemCoreClock' is not usable in a constant expression
68 | #define F_CPU SystemCoreClock
| ^~~~~~~~~~~~~~~
/Users/joshbass/Downloads/Marlin-bugfix-2.0.x 3/Marlin/src/HAL/STM32/HAL.cpp:70:27: note: in expansion of macro 'F_CPU'
70 | constexpr int cpuFreq = F_CPU;
| ^~~~~
In file included from /Users/joshbass/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.6.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h:170,
from /Users/joshbass/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.6.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:156,
from /Users/joshbass/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.6.0/cores/arduino/stm32/stm32_def.h:36:
/Users/joshbass/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.6.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h:57:17: note: 'uint32_t SystemCoreClock' is not const
57 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
| ^~~~~~~~~~~~~~~
Multiple libraries were found for "Servo.h"
Used: /Users/joshbass/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.6.0/libraries/Servo
Not used: /Users/joshbass/Library/Arduino15/libraries/Servo
exit status 1

Compilation error: exit status 1

I have been stuck on this for a long time and would appreciate it if anyone has any sort of solution!

Welcome @jbass3953

Seeing that you have references to stm32 in your error output, you are aware of the following from Installing Marlin (Arduino) | Marlin Firmware ?

Your problem has nothing to do with avrdude or stk500 or the bootloader and hence has been moved to a more suitable location on the forum.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.