makerbase-mks / MKS-RUMBA32

MKS RUMBA32 is modified in Aus3D RUMBA32 version and a powerful 32-bit 3D printer control board with STM32F446VET6 , The main frequency is 180MHZ. Support Marlin2.0 , support MKS LCD12864B/MINI12864/2004/12864, support MKS TFT24/28/32/35/70 Screens. The motherboard integrates 6 AXIS interface, integrates SPI / UART interface…
16 stars 15 forks source link

Build Failed #28

Closed RepRapThailand closed 3 years ago

RepRapThailand commented 3 years ago

Hi.

Atom 1.52.0 PlatformIO 5.0.3

Compiling .pio\build\mks_rumba32\FrameworkArduino\stm32\usb\usbd_desc.c.o C:\Users\krp.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\krp.platformio\packages\framework-arduinoststm32\system\Middlewares\ST\STM32_USB_Device_Library\Core\Inc/usbd_core.h:30, from C:\Users\krp.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\usbd_desc.c:21: C:\Users\krp.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'?

mks-viva commented 3 years ago

Hi! I think this is caused by some libraries on the compilation platform. At this stage, people are more willing to use Vscode to compile firmware.

RepRapThailand commented 3 years ago

Which version should I install, both VSC and PIO?

mks-viva commented 3 years ago

Like this: https://github.com/makerbase-mks/MKS-Robin-Nano-V2.X/wiki/Marlin_firmware

RepRapThailand commented 3 years ago

I try VScode 1.51.1 and PIO 2.2.1 and same error.

RepRapThailand commented 3 years ago

Building in release mode Compiling .pio\build\mks_rumba32\FrameworkArduino\stm32\usb\usbd_desc.c.o Compiling .pio\build\mks_rumba32\FrameworkArduino\stm32\usb\usbd_ep_conf.c.o C:\Users\krp.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\krp.platformio\packages\framework-arduinoststm32\system\Middlewares\ST\STM32_USB_Device_Library\Core\Inc/usbd_core.h:30, from C:\Users\krp.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\usbd_desc.c:21: C:\Users\krp.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\krp.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\mks_rumba32\FrameworkArduino\stm32\usb\usbd_desc.c.o] Error 1 ================================================================================================== [FAILED] Took 5.53 seconds ==================================================================================================

Environment Status Duration


mks_rumba32 FAILED 00:00:05.533 ============================================================================================= 1 failed, 0 succeeded in 00:00:05.533 ============================================================================================= The terminal process "C:\Users\krp.platformio\penv\Scripts\pio.exe 'run', '--environment', 'mks_rumba32'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

mks-viva commented 3 years ago

Did you modify the firmware? Can you provide your firmware to me?

RepRapThailand commented 3 years ago

I have not modified. Link https://github.com/makerbase-mks/MKS-RUMBA32/tree/master/Firmware/Marlin-bugfix-2.0.x

RepRapThailand commented 3 years ago

I try compile on another computer and same error.

RepRapThailand commented 3 years ago

Do I have to connect the board while build?

mks-viva commented 3 years ago

Haha! You can download offical marlin and change it, MKS RUMBA32 path marlin firmware have not update to the latest version marlin firmware.

RepRapThailand commented 3 years ago

Verbose mode can be enabled via -v, --verbose option In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:34, from buildroot/share/PlatformIO/scripts/common-dependencies.h:31: buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../pins/pins.h:776:6: error: #error "Unknown MOTHERBOARD value set in Configuration.h" 776 | #error "Unknown MOTHERBOARD value set in Configuration.h" | ^~~~~ CalledProcessError: Command '"C:\Users\krp.platformio\packages\toolchain-gccarmnoneeabi\bin\arm-none-eabi-g++.exe" -DMARLIN_FIRMWARE -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 -DMARLIN_DEPS -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.: File "C:\Users\krp.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168: env.SConscript(item, exports="env") File "C:\Users\krp.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598: return _SConscript(self.fs, *files, *subst_kw) File "C:\Users\krp.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "C:\Users\krp\Documents\PlatformIO\Projects\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 287: apply_features_config() File "C:\Users\krp\Documents\PlatformIO\Projects\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 118: if not env.MarlinFeatureIsEnabled(feature): File "C:\Users\krp.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219: return self.method(nargs, kwargs) File "C:\Users\krp\Documents\PlatformIO\Projects\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 263: load_marlin_features() File "C:\Users\krp\Documents\PlatformIO\Projects\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 251: define_list = subprocess.check_output(cmd, shell=True).splitlines() File "C:\Users\krp.platformio\python3\lib\subprocess.py", line 411: kwargs).stdout File "C:\Users\krp.platformio\python3\lib\subprocess.py", line 512: output=stdout, stderr=stderr)

RepRapThailand commented 3 years ago

1606474391023

mks-viva commented 3 years ago

You need define BOARD_RUMBA32_MKS image

RepRapThailand commented 3 years ago

1606474759301

RepRapThailand commented 3 years ago

1606474939634

RepRapThailand commented 3 years ago

Back to the same failure.

mks-viva commented 3 years ago

What screen are you using? I test a firmware and provide it to you

RepRapThailand commented 3 years ago

MKS TFT35 V1.0 and RepRapDiscount Full Graphic Smart Controller.

RepRapThailand commented 3 years ago

Which version do you use for VScode and Platformio?

mks-viva commented 3 years ago

update firmware bin file.zip

  1. Download it
  2. MKS RUMBA32 enter DFU mode(Press down BOOT , connect to PC by USB) image
  3. Run Upload.bat image image
  4. Test is ok RUMBA32+TFT35+LCD12864 TEST.zip image
mks-viva commented 3 years ago

The firmware link is: https://github.com/makerbase-mks/MKS-RUMBA32/blob/master/Firmware/Marlin-2.0.7.2.zip

RepRapThailand commented 3 years ago

Successful with your upload.bat but TFT35 not responding, full graphic smart controller working.

RepRapThailand commented 3 years ago

1606489134989

RepRapThailand commented 3 years ago

VID_20201127_215531.zip

RepRapThailand commented 3 years ago

The firmware link is: https://github.com/makerbase-mks/MKS-RUMBA32/blob/master/Firmware/Marlin-2.0.7.2.zip

What version of VScode and Platformio are you using?

I use 1.51.1 and 2.2.1 and st stm32 9.0.

mks-viva commented 3 years ago

The firmware link is: https://github.com/makerbase-mks/MKS-RUMBA32/blob/master/Firmware/Marlin-2.0.7.2.zip

What version of VScode and Platformio are you using?

I use 1.51.1 and 2.2.1 and st stm32 9.0.

Haha! I use MKS-Marlin2.0-Compile.exe : https://github.com/makerbase-mks/MKS-Marlin2.0-Compile-Tool

mks-viva commented 3 years ago

Successful with your upload.bat but TFT35 not responding, full graphic smart controller working.

You need set MKS TFT35 baudrate to 250000 by config file

RepRapThailand commented 3 years ago

Successful with your upload.bat but TFT35 not responding, full graphic smart controller working.

You need set MKS TFT35 baudrate to 250000 by config file

yes, baudrate 250000

1606567364391

RepRapThailand commented 3 years ago

ok, success! ขอบคุณมาก