MKFirmware / MK4duo

MK4duo Firmware Printers 3D for Arduino and Arduino due
http://www.marlinkimbra.it
GNU General Public License v3.0
206 stars 118 forks source link

compile errors - RUMBA32 #814

Closed Briangsouza closed 4 years ago

Briangsouza commented 4 years ago

Arduino: 1.8.12 (Mac OS X), Placa:"3D printer boards, RUMBA32, STM32CubeProgrammer (DFU), Enabled (generic 'Serial'), CDC (no generic 'Serial'), Low/Full Speed, Smallest (-Os default), Newlib Nano (default)"

AVISO: a biblioteca TMCStepper alega rodar em arquitetura(s) avr e pode ser incompatível com sua placa atual, que roda em arquitetura(s) stm32. sketch/src/platform/HAL_STM32/HAL_timers.cpp: In function 'void HAL_timer_start()': sketch/src/platform/HAL_STM32/HAL_timers.cpp:90:48: error: no matching function for call to 'HardwareTimer::attachInterrupt(void (&)(HardwareTimer))' 90 | MK_step_timer->attachInterrupt(Step_Handler); | ^ In file included from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/stm32/analog.h:45, from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/board.h:8, from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/wiring.h:41, from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/Arduino.h:36, from sketch/src/platform/HAL_STM32/../../../MK4duo.h:37, from sketch/src/platform/HAL_STM32/HAL_timers.cpp:25: /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:134:10: note: candidate: 'void HardwareTimer::attachInterrupt(callback_function_t)' 134 | void attachInterrupt(callback_function_t callback); // Attach interrupt callback which will be called upon update event (timer rollover) | ^~~~~~~ /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:134:46: note: no known conversion for argument 1 from 'void(HardwareTimer)' to 'callback_function_t' {aka 'std::function<void()>'} 134 | void attachInterrupt(callback_function_t callback); // Attach interrupt callback which will be called upon update event (timer rollover) | ~~~~^~~~ /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:138:10: note: candidate: 'void HardwareTimer::attachInterrupt(uint32_t, callback_function_t)' 138 | void attachInterrupt(uint32_t channel, callback_function_t callback); // Attach interrupt callback which will be called upon compare match event of specified channel | ^~~~~~~ /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:138:10: note: candidate expects 2 arguments, 1 provided sketch/src/platform/HAL_STM32/HAL_timers.cpp: In function 'void HAL_timer_enable_interrupt()': sketch/src/platform/HAL_STM32/HAL_timers.cpp:98:48: error: no matching function for call to 'HardwareTimer::attachInterrupt(void (&)(HardwareTimer))' 98 | MK_step_timer->attachInterrupt(Step_Handler); | ^ In file included from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/stm32/analog.h:45, from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/board.h:8, from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/wiring.h:41, from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/Arduino.h:36, from sketch/src/platform/HAL_STM32/../../../MK4duo.h:37, from sketch/src/platform/HAL_STM32/HAL_timers.cpp:25: /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:134:10: note: candidate: 'void HardwareTimer::attachInterrupt(callback_function_t)' 134 | void attachInterrupt(callback_function_t callback); // Attach interrupt callback which will be called upon update event (timer rollover) | ^~~~~~~ /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:134:46: note: no known conversion for argument 1 from 'void(HardwareTimer)' to 'callback_function_t' {aka 'std::function<void()>'} 134 | void attachInterrupt(callback_function_t callback); // Attach interrupt callback which will be called upon update event (timer rollover) | ~~~~^~~~ /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:138:10: note: candidate: 'void HardwareTimer::attachInterrupt(uint32_t, callback_function_t)' 138 | void attachInterrupt(uint32_t channel, callback_function_t callback); // Attach interrupt callback which will be called upon compare match event of specified channel | ^~~~~~~ /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:138:10: note: candidate expects 2 arguments, 1 provided sketch/src/platform/HAL_STM32/servo.cpp: In function 'void TimerServoInit()': sketch/src/platform/HAL_STM32/servo.cpp:75:57: error: no matching function for call to 'HardwareTimer::attachInterrupt(void (&)(HardwareTimer))' 75 | TimerServo.attachInterrupt(Servo_PeriodElapsedCallback); | ^ In file included from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/stm32/analog.h:45, from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/board.h:8, from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/wiring.h:41, from /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/Arduino.h:36, from sketch/src/platform/HAL_STM32/../../../MK4duo.h:37, from sketch/src/platform/HAL_STM32/servo.cpp:25: /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:134:10: note: candidate: 'void HardwareTimer::attachInterrupt(callback_function_t)' 134 | void attachInterrupt(callback_function_t callback); // Attach interrupt callback which will be called upon update event (timer rollover) | ^~~~~~~ /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:134:46: note: no known conversion for argument 1 from 'void(HardwareTimer)' to 'callback_function_t' {aka 'std::function<void()>'} 134 | void attachInterrupt(callback_function_t callback); // Attach interrupt callback which will be called upon update event (timer rollover) | ~~~~^~~~ /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:138:10: note: candidate: 'void HardwareTimer::attachInterrupt(uint32_t, callback_function_t)' 138 | void attachInterrupt(uint32_t channel, callback_function_t callback); // Attach interrupt callback which will be called upon compare match event of specified channel | ^~~~~~~ /Users/brian/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/HardwareTimer.h:138:10: note: candidate expects 2 arguments, 1 provided exit status 1 Erro compilando para a placa 3D printer boards

Este relatório teria mais informações com "Mostrar a saida detalhada durante a compilação" opção pode ser ativada em "Arquivo -> Preferências"

MagoKimbra commented 4 years ago

Sorry if you have old firmware, you must download stm32 1,8.0,, if you have new fw you must use 1.9.0 stm32 library.