KREMEN Реклама
KREMEN Реклама

Ошибка при компиляции пошивки STM32F103RE_creality

NONAMEANONIM
Идет загрузка
Загрузка
13.01.2024
1637
9
Вопросы и ответы
Статья относится к принтерам:
Ender 3 Pro
  • Купил себе Bltouch
  • Подключил на плату BOARD_CREALITY_V427 в отдельный разьем 5 пиновый, не вместо концевика Z.
  • Скачал последнюю версию прошивки Marlin-bugfix-2.1.x
  • Скачал последний конфиг Configurations-import-2.1.x
  • Зашёл в Configurations-import-2.1.x\config\examples\Creality\Ender-3 Pro\CrealityV427
  • Скопировал 4 файла
  • Перешёл в Marlin-bugfix-2.1.x\Marlin
  • Вставил скопированные файлы с заменой

Ошибка при компиляции пошивки STM32F103RE_creality

  • Запустил VsCode и открыл каталог

Ошибка при компиляции пошивки STM32F103RE_creality

И вот тут начались сложности. В большинстве гайдов люди подключают кнопку вместо концевика Z, я же подключил кнопку в общий 5 пиновый коннектор сделаный специально для этого. Я посмотрел несколько видеоуроков и попытался настроить всё так, как должно быть. Но при компиляции у меня возникает очень странная ошибка. Из важных изменений, которые на мой взгляд могли привести к проблемам:

  • default_envs = STM32F103RE_creality
  • #define MOTHERBOARD BOARD_CREALITY_V427
  • #define X_DRIVER_TYPE TMC2208_STANDALONE
  • #define Y_DRIVER_TYPE TMC2208_STANDALONE
  • #define Z_DRIVER_TYPE TMC2208_STANDALONE
  • #define E0_DRIVER_TYPE TMC2208_STANDALONE

Ошибка:

platformio run --silent -e STM32F103RE_creality In file included from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,                  from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,                  from Marlin\src\HAL\STM32\HAL.cpp:26: Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:62:4: error: #error "SERIAL_PORT must be from 1 to 9."    62 | #error "SERIAL_PORT must be from 1 to 9."       | ^~~~~ In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,                  from Marlin\src\HAL\STM32\HAL.cpp:26: Marlin\src\HAL\STM32\../../inc/SanityCheck.h:1582:6: error: #error "LCD_BED_LEVELING is not supported by the selected LCD controller."  1582 | #error "LCD_BED_LEVELING is not supported by the selected LCD controller."       | ^~~~~ Marlin\src\HAL\STM32\../../inc/SanityCheck.h:1822:6: error: #error "FAN_SOFT_PWM is required for your board. Enable it to continue."  1822 | #error "FAN_SOFT_PWM is required for your board. Enable it to continue."       | ^~~~~ In file included from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,                  from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,                  from Marlin\src\HAL\STM32\HAL_SPI.cpp:26: Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:62:4: error: #error "SERIAL_PORT must be from 1 to 9."    62 | #error "SERIAL_PORT must be from 1 to 9."       | ^~~~~ In file included from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,                  from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,                  from Marlin\src\HAL\STM32\HardwareSerial.cpp:32: Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:62:4: error: #error "SERIAL_PORT must be from 1 to 9."    62 | #error "SERIAL_PORT must be from 1 to 9."       | ^~~~~ In file included from Marlin\src\HAL\STM32\MarlinSPI.h:24,                  from Marlin\src\HAL\STM32\MarlinSPI.cpp:27: Marlin\src\HAL\STM32\HAL.h:62:4: error: #error "SERIAL_PORT must be from 1 to 9."    62 | #error "SERIAL_PORT must be from 1 to 9."       | ^~~~~ In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,                  from Marlin\src\HAL\STM32\HAL_SPI.cpp:26: Marlin\src\HAL\STM32\../../inc/SanityCheck.h:1582:6: error: #error "LCD_BED_LEVELING is not supported by the selected LCD controller."  1582 | #error "LCD_BED_LEVELING is not supported by the selected LCD controller."       | ^~~~~ Marlin\src\HAL\STM32\../../inc/SanityCheck.h:1822:6: error: #error "FAN_SOFT_PWM is required for your board. Enable it to continue."  1822 | #error "FAN_SOFT_PWM is required for your board. Enable it to continue."       | ^~~~~ In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,                  from Marlin\src\HAL\STM32\HardwareSerial.cpp:32: Marlin\src\HAL\STM32\../../inc/SanityCheck.h:1582:6: error: #error "LCD_BED_LEVELING is not supported by the selected LCD controller."  1582 | #error "LCD_BED_LEVELING is not supported by the selected LCD controller."       | ^~~~~ Marlin\src\HAL\STM32\../../inc/SanityCheck.h:1822:6: error: #error "FAN_SOFT_PWM is required for your board. Enable it to continue."  1822 | #error "FAN_SOFT_PWM is required for your board. Enable it to continue."       | ^~~~~ In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:59,                  from Marlin\src\HAL\STM32\HAL.cpp:26: Marlin\src\HAL\STM32\../../inc/../core/serial.h: In function 'void SERIAL_CHAR(char, Args ...)': Marlin\src\HAL\STM32\../../inc/../core/serial.h:56:26: error: 'MYSERIAL1' was not declared in this scope; did you mean 'MSERIAL'?    56 | #define _SERIAL_LEAF_1 MYSERIAL1       | ^~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:65:25: note: in expansion of macro '_SERIAL_LEAF_1'    65 | #define SERIAL_LEAF_1 _SERIAL_LEAF_1       | ^~~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:120:31: note: in expansion of macro 'SERIAL_LEAF_1'   120 | #define SERIAL_IMPL SERIAL_LEAF_1       | ^~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:132:43: note: in expansion of macro 'SERIAL_IMPL'   132 | void SERIAL_CHAR(char a, Args ... args) { SERIAL_IMPL.write(a); SERIAL_CHAR(args ...); }       | ^~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h: In function 'void SERIAL_ECHO(T)': Marlin\src\HAL\STM32\../../inc/../core/serial.h:56:26: error: 'MYSERIAL1' was not declared in this scope; did you mean 'MSERIAL'?    56 | #define _SERIAL_LEAF_1 MYSERIAL1       | ^~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:65:25: note: in expansion of macro '_SERIAL_LEAF_1'    65 | #define SERIAL_LEAF_1 _SERIAL_LEAF_1       | ^~~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:120:31: note: in expansion of macro 'SERIAL_LEAF_1'   120 | #define SERIAL_IMPL SERIAL_LEAF_1       | ^~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:141:49: note: in expansion of macro 'SERIAL_IMPL'   141 | template void SERIAL_ECHO(T x) { SERIAL_IMPL.print(x); }       | ^~~~~~~~~~~ compilation terminated due to -fmax-errors=5. *** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\HAL.cpp.o] Error 1 *** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\MarlinSPI.cpp.o] Error 1 In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:59,                  from Marlin\src\HAL\STM32\HardwareSerial.cpp:32: Marlin\src\HAL\STM32\../../inc/../core/serial.h: In function 'void SERIAL_CHAR(char, Args ...)': Marlin\src\HAL\STM32\../../inc/../core/serial.h:56:26: error: 'MYSERIAL1' was not declared in this scope; did you mean 'MSERIAL'?    56 | #define _SERIAL_LEAF_1 MYSERIAL1       | ^~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:65:25: note: in expansion of macro '_SERIAL_LEAF_1'    65 | #define SERIAL_LEAF_1 _SERIAL_LEAF_1       | ^~~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:120:31: note: in expansion of macro 'SERIAL_LEAF_1'   120 | #define SERIAL_IMPL SERIAL_LEAF_1       | ^~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:132:43: note: in expansion of macro 'SERIAL_IMPL'   132 | void SERIAL_CHAR(char a, Args ... args) { SERIAL_IMPL.write(a); SERIAL_CHAR(args ...); }       | ^~~~~~~~~~~ In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:59,                  from Marlin\src\HAL\STM32\HAL_SPI.cpp:26: Marlin\src\HAL\STM32\../../inc/../core/serial.h: In function 'void SERIAL_CHAR(char, Args ...)': Marlin\src\HAL\STM32\../../inc/../core/serial.h:56:26: error: 'MYSERIAL1' was not declared in this scope; did you mean 'MSERIAL'?    56 | #define _SERIAL_LEAF_1 MYSERIAL1       | ^~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:65:25: note: in expansion of macro '_SERIAL_LEAF_1'    65 | #define SERIAL_LEAF_1 _SERIAL_LEAF_1       | ^~~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:120:31: note: in expansion of macro 'SERIAL_LEAF_1'   120 | #define SERIAL_IMPL SERIAL_LEAF_1       | ^~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:132:43: note: in expansion of macro 'SERIAL_IMPL'       | ^~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h: In function 'void SERIAL_ECHO(T)': Marlin\src\HAL\STM32\../../inc/../core/serial.h:56:26: error: 'MYSERIAL1' was not declared in this scope; did you mean 'MSERIAL'?    56 | #define _SERIAL_LEAF_1 MYSERIAL1       | ^~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:65:25: note: in expansion of macro '_SERIAL_LEAF_1'    65 | #define SERIAL_LEAF_1 _SERIAL_LEAF_1       | ^~~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:120:31: note: in expansion of macro 'SERIAL_LEAF_1'   120 | #define SERIAL_IMPL SERIAL_LEAF_1       | ^~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:141:49: note: in expansion of macro 'SERIAL_IMPL'   141 | template void SERIAL_ECHO(T x) { SERIAL_IMPL.print(x); }       | ^~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h: In function 'void SERIAL_ECHO(T)': Marlin\src\HAL\STM32\../../inc/../core/serial.h:56:26: error: 'MYSERIAL1' was not declared in this scope; did you mean 'MSERIAL'?    56 | #define _SERIAL_LEAF_1 MYSERIAL1       | ^~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:65:25: note: in expansion of macro '_SERIAL_LEAF_1'    65 | #define SERIAL_LEAF_1 _SERIAL_LEAF_1       | ^~~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:120:31: note: in expansion of macro 'SERIAL_LEAF_1'   120 | #define SERIAL_IMPL SERIAL_LEAF_1       | ^~~~~~~~~~~~~ Marlin\src\HAL\STM32\../../inc/../core/serial.h:141:49: note: in expansion of macro 'SERIAL_IMPL'   141 | template void SERIAL_ECHO(T x) { SERIAL_IMPL.print(x); }       | ^~~~~~~~~~~ compilation terminated due to -fmax-errors=5. compilation terminated due to -fmax-errors=5. *** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\HardwareSerial.cpp.o] Error 1 *** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\HAL_SPI.cpp.o] Error 1 ========================================================================================= [FAILED] Took 48.37 seconds ========================================================================================= Environment Status Duration -------------------- -------- ------------ STM32F103RE_creality FAILED 00:00:48.374 PS C:\Users\Petrov\Desktop\New_Pro\Marlin-bugfix-2.1.x> echo "done" >"C:\Users\Petrov\AppData\Local\Temp\ipc" PS C:\Users\Petrov\Desktop\New_Pro\Marlin-bugfix-2.1.x>

В итоге у меня два вопроса:

  1. Подскажите пожалуйста с чем связана проблема и как её решить
  2. Какие конкретно функции мне нужно выключить(накомментировать), а какие включить, при подключении Bltouch в 5 пиновый контакт

Ответы на вопросы