Welcome! Log In Create A New Profile

Advanced

Marlin 2.0.x bugfix does not compile anymore

Posted by Hoast 
Marlin 2.0.x bugfix does not compile anymore
November 22, 2020 05:06PM
Hi,

I had to reinstall my computer lately and when i reinstalled VSCode to edit something on my firmware (this one is based on the Marlin bugfix 2.0.x, which is at least 7 months old), it did not compile anymore.
I am using a SKR 1.1 Pro board and had no problems changing things in my firmware before i reinstalled my computer.
I dont know what has changed, but the error I get is the following:

Processing BIGTREE_SKR_PRO (platform: ststm32@>=5.7.0; framework: arduino; board: BigTree_SKR_Pro)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: [docs.platformio.org]
PLATFORM: ST STM32 (8.1.0) > STM32F407ZG (192k RAM. 1024k Flash)
HARDWARE: STM32F407ZGT6 168MHz, 192KB RAM, 1MB Flash
DEBUG: Current (jlink) External (jlink, stlink)
PACKAGES:
 - framework-arduinoststm32 4.10900.200819 (1.9.0)
 - framework-cmsis 2.50501.200527 (5.5.1)
 - toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> [bit.ly]
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 15 compatible libraries
Scanning dependencies...
Dependency Graph
|--  0.4.1
|   |--  1.0
|   |--  1.0
|--  1.5.0
|   |--  1.0
|--  0.6.1
|   |--  1.0
|--  1.3.4
|--  1.2.7
|   |--  1.0
|--  0.7.0
|--  1.0
|--  1.1.2
|--  2.0.1
|--  1.0.0
|--  1.0
Building in release mode
Compiling .pio\build\BIGTREE_SKR_PRO\FrameworkArduino\stm32\usb\usbd_desc.c.o
Compiling .pio\build\BIGTREE_SKR_PRO\FrameworkArduino\wiring_digital.c.o
Compiling .pio\build\BIGTREE_SKR_PRO\FrameworkArduino\wiring_pulse.cpp.o
Compiling .pio\build\BIGTREE_SKR_PRO\FrameworkArduino\wiring_shift.c.o
C:\users\hoast\.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\hoast\.platformio\packages\framework-arduinoststm32\system\Middlewares\ST\STM32_USB_Device_Library\Core\Inc/usbd_core.h:30,
                 from C:\users\hoast\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\usbd_desc.c:21:
C:\users\hoast\.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\hoast\.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\BIGTREE_SKR_PRO\FrameworkArduino\stm32\usb\usbd_desc.c.o] Error 1

I also tried the new Firmware of my Board (SKR ProV1.1-Marlin_v2.0-Demo which is 2 months old) and there is no problem in compiling this. But interestingly when I try to change things to match it with my old firmware, things just dont make sense to me. For example my hot end thermistor is not working properly anymore and shows wrong temperature, althoug the same thermistor is set in the firmware. My stepper motors also dont work the same way, as they did with my firmware although the settings match.
I really hope, somebody can at least help me get my old firmware back running. If more information are needed, pls ask for it.

Best regards
Sorry, only registered users may post in this forum.

Click here to login