Good morning
Which VID and PID should I use, that of the STM32 BOATLOADER or the COM port?
Now I get these errors:
> Executing task: C:\Users\mauro.platformio\penv\Scripts\platformio.exe run <
Processing RUMBA32 (platform: ststm32; framework: arduino; board: RUMBA32_F446VE)
-----------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/RUMBA32_F446VE.html</div><div>PLATFORM: ST STM32 8.0.0 > 3D Printer control board
HARDWARE: STM32F446RET6 180MHz, 128KB RAM, 512KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES:
- framework-arduinoststm32 4.10900.200819 (1.9.0)
- framework-cmsis 2.50501.200527 (5.5.1)
- tool-dfuutil 1.9.200310
- toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf</div><div>LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 11 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <SPI> 1.0
|-- <IWatchdog> 1.0.0
|-- <Wire> 1.0
|-- <TMCStepper> 0.6.1
| |-- <SoftwareSerial> 1.0
| |-- <SPI> 1.0
Building in release mode
Compiling .pio\build\RUMBA32\src\boards\STM32F4\HAL.cpp.o
Compiling .pio\build\RUMBA32\src\communication\Eeprom.cpp.o
Compiling .pio\build\RUMBA32\src\communication\GCodes.cpp.o
Compiling .pio\build\RUMBA32\src\communication\MCodes.cpp.o
src\boards\STM32F4\HAL.cpp: In static member function 'static void HAL::hwSetup()':
src\boards\STM32F4\HAL.cpp:311:91: error: no matching function for call to 'HardwareTimer::setPWM(int, PinName, int, int, void (&)(HardwareTimer), void (&)(HardwareTimer))'
311 | servo->timer->setPWM(1, NC, 200, 50, TIMER_VECTOR_NAME(SERVO_TIMER_NUM), servoOffTimer);
| ^
In file included from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/analog.h:45,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/board.h:8,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:41,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from src/boards/pins.h:4,
from src/Configuration.h:154,
from src/Repetier.h:210,
from src\boards\STM32F4\HAL.cpp:27:
C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/HardwareTimer.h:115:10: note: candidate: 'void HardwareTimer::setPWM(uint32_t, PinName, uint32_t, uint32_t, callback_function_t, callback_function_t)'
115 | void setPWM(uint32_t channel, PinName pin, uint32_t frequency, uint32_t dutycycle, callback_function_t PeriodCallback = nullptr, callback_function_t CompareCallback = nullptr); // Set all in one command freq in HZ, Duty in percentage. Including both interrup.
| ~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/HardwareTimer.h:115:108: note: no known conversion for argument 5 from 'void(HardwareTimer)' to 'callback_function_t' {aka 'std::function<void()>'}
115 | void setPWM(uint32_t channel, PinName pin, uint32_t frequency, uint32_t dutycycle, callback_function_t PeriodCallback = nullptr, callback_function_t CompareCallback = nullptr); // Set all in one command freq in HZ, Duty in percentage. Including both interrup.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/analog.h:45,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/board.h:8,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:41,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from src/boards/pins.h:4,
from src/Configuration.h:154,
from src/Repetier.h:210,
from src\boards\STM32F4\HAL.cpp:27:
C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/HardwareTimer.h:116:10: note: candidate: 'void HardwareTimer::setPWM(uint32_t, uint32_t, uint32_t, uint32_t, callback_function_t, callback_function_t)'
116 | void setPWM(uint32_t channel, uint32_t pin, uint32_t frequency, uint32_t dutycycle, callback_function_t PeriodCallback = nullptr, callback_function_t CompareCallback = nullptr);
| ~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/HardwareTimer.h:116:109: note: no known conversion for argument 5 from 'void(HardwareTimer*)' to 'callback_function_t' {aka 'std::function<void()>'}
116 | void setPWM(uint32_t channel, uint32_t pin, uint32_t frequency, uint32_t dutycycle, callback_function_t PeriodCallback = nullptr, callback_function_t CompareCallback = nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\boards\STM32F4\HAL.cpp: In static member function 'static void HAL::setupTimer()':
src\boards\STM32F4\HAL.cpp:344:73: error: no matching function for call to 'HardwareTimer::attachInterrupt(void (&)(HardwareTimer))'
344 | motion2->timer->attachInterrupt(TIMER_VECTOR_NAME(MOTION2_TIMER_NUM));
| ^
In file included from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/analog.h:45,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/board.h:8,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:41,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from src/boards/pins.h:4,
from src/Configuration.h:154,
from src/Repetier.h:210,
from src\boards\STM32F4\HAL.cpp:27:
C:\Users\mauro.platformio\packages\framework-arduinoststm32\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)
| ~~~~~~~~~~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\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)
| ~~~~~~~~~~~~~~~~~~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\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
| ~~~~~~~~~~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/HardwareTimer.h:138:10: note: candidate expects 2 arguments, 1 provided
src\boards\STM32F4\HAL.cpp:354:65: error: no matching function for call to 'HardwareTimer::attachInterrupt(void (&)(HardwareTimer))'
354 | pwm->timer->attachInterrupt(TIMER_VECTOR_NAME(PWM_TIMER_NUM));
| ^
In file included from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/analog.h:45,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/board.h:8,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:41,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from src/boards/pins.h:4,
from src/Configuration.h:154,
from src/Repetier.h:210,
from src\boards\STM32F4\HAL.cpp:27:
C:\Users\mauro.platformio\packages\framework-arduinoststm32\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)
| ~~~~~~~~~~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\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)
| ~~~~~~~~~~~~~~~~~~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\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
| ~~~~~~~~~~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/HardwareTimer.h:138:10: note: candidate expects 2 arguments, 1 provided
src\boards\STM32F4\HAL.cpp:364:73: error: no matching function for call to 'HardwareTimer::attachInterrupt(void (&)(HardwareTimer))'
364 | motion3->timer->attachInterrupt(TIMER_VECTOR_NAME(MOTION3_TIMER_NUM));
| ^
In file included from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/analog.h:45,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/board.h:8,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:41,
from C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from src/boards/pins.h:4,
from src/Configuration.h:154,
from src/Repetier.h:210,
from src\boards\STM32F4\HAL.cpp:27:
C:\Users\mauro.platformio\packages\framework-arduinoststm32\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)
| ~~~~~~~~~~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\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)
| ~~~~~~~~~~~~~~~~~~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\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
| ~~~~~~~~~~~
C:\Users\mauro.platformio\packages\framework-arduinoststm32\cores\arduino/HardwareTimer.h:138:10: note: candidate expects 2 arguments, 1 provided
*** [.pio\build\RUMBA32\src\boards\STM32F4\HAL.cpp.o] Error 1
============================================================ [FAILED] Took 10.92 seconds ============================================================
Environment Status Duration
------------------------ -------- ------------
due IGNORED
dueUSB IGNORED
megaatmega2560 IGNORED
adafruit_grandcentral_m4 IGNORED
stacker_3d_superboard IGNORED
RUMBA32 FAILED 00:00:10.915
======================================================= 1 failed, 0 succeeded in 00:00:10.915 =======================================================Il processo del terminale "C:\Users\mauro.platformio\penv\Scripts\platformio.exe 'run'" ?? stato terminato. Codice di uscita: 1.
platformio.ini
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html</div><div>;</div><div>; IMPORTANT: Use PlatformIO Core 4.0.0 or newer!</div><br/><div>[platformio]</div><div>; Select here the environment you want to compile</div><div>; Arduino Due based</div><div>; due, dueUSB, stacker_3d_superboard</div><div>; AVR based (8 bit)</div><div>; megaatmega2560</div><div>; SAMD51 based</div><div>; adafruit_grandcentral_m4</div><div>; STM32 based</div><div>; RUMBA32</div><div>default_envs = RUMBA32</div><div>; env_default = stacker_3d_superboard</div><div>; lib_deps = </div><div>; Set upload port if autodetect does not work</div><div>; upload_port = COM1</div><div>[common]</div><div>; Default monitor speed for testing</div><div>default_src_filter = +<*> -<boards></div><div>build_flags = -fmax-errors=5</div><div> -g</div><div> -ggdb</div><br/><div>; Properties shared with all envs if not overridden</div><div>[env]</div><div>monitor_speed = 115200</div><br/><div>[env:due]
platform = atmelsam
board = due
framework = arduino
src_filter = ${common.default_src_filter} +<boards/due>
debug_tool = jlink
monitor_speed = 115200
[env:dueUSB]
platform = atmelsam
board = dueUSB
framework = arduino
src_filter = ${common.default_src_filter} +<boards/due>
debug_tool = jlink
monitor_speed = 115200
; upload_protocol = jlink-jtag
; any port that starts with /dev/ttyUSB
;upload_port = /dev/ttyUSB*
; COM1
;upload_port = COM1
[env:megaatmega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
src_filter = ${common.default_src_filter} +<boards/avr>
[env:adafruit_grandcentral_m4]
platform = atmelsam
board = adafruit_grandcentral_m4
src_filter = ${common.default_src_filter} +<boards/SAMD51>
upload_protocol = sam-ba
framework = arduino
monitor_speed = 115200
debug_tool = jlink
[env:stacker_3d_superboard]
platform = atmelsam
board = stacker_3d_superboard
framework = arduino
src_filter = ${common.default_src_filter} +<boards/due>
monitor_speed = 115200
[env:RUMBA32]
platform = ststm32
framework = arduino
board = RUMBA32_F446VE
; * Originale build_flags = ${common.build_flags} -DSTM32F4xx -DARDUINO_RUMBA32_F446VE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"RUMBA32_F446VE\"" -DSTM32F446xx -DUSBCON -DUSBD_VID=0x8000 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"RUMBA32_F446VE\"" -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED -DSERIAL_RX_BUFFER_SIZE=256 -DSERIAL_TX_BUFFER_SIZE=256 -Os
build_flags = ${common.build_flags} -DSTM32F4xx -DARDUINO_RUMBA32_F446VE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"RUMBA32_F446VE\"" -DSTM32F446xx -DUSBCON -DUSBD_VID=0x8000 -DUSBD_PID=0x5711 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"RUMBA32_F446VE\"" -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED -DSERIAL_RX_BUFFER_SIZE=256 -DSERIAL_TX_BUFFER_SIZE=256 -Os
src_filter = ${common.default_src_filter} +<boards/STM32F4>
upload_protocol = dfu