V2 firmware on MKS rumba32
Good morning
This is the first time I have used Visual Studio Code and Platformie.
I have been trying to write V2 firmware to MKS Rumba32 for many days.
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
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
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\FrameworkArduino\stm32\usb\usbd_desc.c.o
Compiling .pio\build\RUMBA32\FrameworkArduino\wiring_analog.c.o
Compiling .pio\build\RUMBA32\FrameworkArduino\wiring_digital.c.o
Compiling .pio\build\RUMBA32\FrameworkArduino\wiring_pulse.cpp.o
C:\Users\mauro\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\usbd_desc.c:46:4: error: #error "USB VID or PID not specified"
46 | #error "USB VID or PID not specified"
| ^~~~~
In file included from C:\Users\mauro\.platformio\packages\framework-arduinoststm32\system\Middlewares\ST\STM32_USB_Device_Library\Core\Inc/usbd_core.h:30,
from C:\Users\mauro\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\usbd_desc.c:21:
C:\Users\mauro\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\usbd_desc.c:160:10: error: 'USBD_PID' undeclared here (not in a
function); did you mean 'USBD_VID'?
160 | LOBYTE(USBD_PID), /* idProduct */
| ^~~~~~~~
C:\Users\mauro\.platformio\packages\framework-arduinoststm32\system\Middlewares\ST\STM32_USB_Device_Library\Core\Inc/usbd_def.h:275:32: note: in definition of macro 'LOBYTE'
275 | #define LOBYTE(x) ((uint8_t)((x) & 0x00FFU))
| ^
*** [.pio\build\RUMBA32\FrameworkArduino\stm32\usb\usbd_desc.c.o] Error 1
============================================================ [FAILED] Took 5.58 seconds ============================================================
Environment Status Duration
------------------------ -------- ------------
due IGNORED
dueUSB IGNORED
megaatmega2560 IGNORED
adafruit_grandcentral_m4 IGNORED
stacker_3d_superboard IGNORED
RUMBA32 FAILED 00:00:05.584
======================================================= 1 failed, 0 succeeded in 00:00:05.584 =======================================================Il processo del terminale "C:\Users\mauro\.platformio\penv\Scripts\platformio.exe 'run'" è stato terminato. Codice di uscita: 1.
Terminale verrà riutilizzato dalle attività, premere un tasto qualsiasi per chiuderlo.
Comments
I added
-DUSBD_PID=0x5740
and with that it compiles. Hope it works as I can not access a rmba32 at the moment.
platformio.ini