开源改变世界

最新版本的 marlin 无法使用指南编译 串口 0 不存在 #103

推推 grbl 3年前 (2023-02-06) 266次浏览
关闭
davidsielert 打开了这个问题 2019 年 11 月 13 日 · 1条评论
关闭

最新版本的 marlin 无法使用指南编译 串口 0 不存在#103

davidsielert 打开了这个问题 2019 年 11 月 13 日 · 1条评论

评论

最新版本的 marlin 无法使用指南编译 串口 0 不存在 #103
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\HAL.cpp:30:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\HAL.cpp:30:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
Compiling .pio\build\STM32F103RC_bigtree\src\src\HAL\shared\HAL_spi_L6470.cpp.o
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\HAL_SPI.cpp:35:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\HAL_SPI.cpp:35:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\HAL.cpp.o] Error 1
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\Servo.cpp:26:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\Servo.cpp:26:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\HAL_SPI.cpp.o] Error 1
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from f:\marlin-bugfix-2.0.x\marlin\src\inc\marlinconfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\dogm\u8g_com_stm32duino_fsmc.cpp:29:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from f:\marlin-bugfix-2.0.x\marlin\src\inc\marlinconfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\dogm\u8g_com_stm32duino_fsmc.cpp:29:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\Servo.cpp.o] Error 1
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from f:\marlin-bugfix-2.0.x\marlin\src\inc\marlinconfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\dogm\u8g_com_stm32duino_swspi.cpp:21:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from f:\marlin-bugfix-2.0.x\marlin\src\inc\marlinconfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\dogm\u8g_com_stm32duino_swspi.cpp:21:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\dogm\u8g_com_stm32duino_fsmc.cpp.o] Error 1
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\onboard_sd.cpp:15:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\onboard_sd.cpp:15:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\persistent_store_eeprom.cpp:23:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\persistent_store_eeprom.cpp:23:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\dogm\u8g_com_stm32duino_swspi.cpp.o] Error 1
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\persistent_store_flash.cpp:32:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\persistent_store_flash.cpp:32:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\persistent_store_sdcard.cpp:30:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\persistent_store_sdcard.cpp:30:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\onboard_sd.cpp.o] Error 1
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\persistent_store_eeprom.cpp.o] Error 1
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\sdio.cpp:28:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\sdio.cpp:28:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\persistent_store_flash.cpp.o] Error 1
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\timers.cpp:29:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\timers.cpp:29:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\persistent_store_sdcard.cpp.o] Error 1
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\watchdog.cpp:29:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\HAL_STM32F1\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\HAL_STM32F1\watchdog.cpp:29:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\hal\hal.h:26:0,
                 from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\shared\HAL_spi_L6470.cpp:28:
f:\marlin-bugfix-2.0.x\marlin\src\hal\hal_stm32f1\hal.h:79:4: error: #error "Serial port 0 does not exist"
   #error "Serial port 0 does not exist"
    ^~~~~
In file included from f:\marlin-bugfix-2.0.x\marlin\src\pins\pins.h:71:0,
                 from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:32,
                 from Marlin\src\HAL\shared\HAL_spi_L6470.cpp:28:
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
    ^~~~~
f:\marlin-bugfix-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
      ^~~~~
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\sdio.cpp.o] Error 1
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\timers.cpp.o] Error 1
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\HAL_STM32F1\watchdog.cpp.o] Error 1
*** [.pio\build\STM32F103RC_bigtree\src\src\HAL\shared\HAL_spi_L6470.cpp.o] Error 1
========================================================= [FAILED] Took 7.34 seconds =========================================================
最新版本的 marlin 无法使用指南编译 串口 0 不存在 #103

如果其他人遇到这个,我将配置文件复制到错误的目录