ANYCUBIC-3D / Vyper

Firmware of Anycubic 3D printer Vyper
GNU General Public License v3.0
106 stars 59 forks source link

I tried to compile the source and it fails saying the board type is wrong. #14

Closed midicdj1000 closed 2 years ago

midicdj1000 commented 2 years ago

I am waiting for a strain gauge and it could be a while so I was looking to change the probe type to manual so I could still generate a mesh and use the printer. I thought I would try to compile the 2.45 firmware first but it failed. This is untouched code from this github page.

In file included from d:\vyper-vyper\marlin\src\pins\pins.h:651:0, from Marlin\src\HAL\AVR../../inc/MarlinConfig.h:34, from Marlin\src\HAL\AVR\HAL.cpp:24: d:\vyper-vyper\marlin\src\pins\stm32f1/pins_AC_TRI_F1_V1.h:25:4: error: #error "Oops! Select an STM32F1 board in 'Tools

Board.'"

error "Oops! Select an STM32F1 board in 'Tools > Board.'"

^~~~~ In file included from d:\vyper-vyper\marlin\src\pins\pins.h:651:0, from Marlin\src\HAL\AVR../../inc/MarlinConfig.h:34, from Marlin\src\HAL\AVR\HAL_SPI.cpp:34: d:\vyper-vyper\marlin\src\pins\stm32f1/pins_AC_TRI_F1_V1.h:25:4: error: #error "Oops! Select an STM32F1 board in 'Tools Board.'"

error "Oops! Select an STM32F1 board in 'Tools > Board.'"

^~~~~ In file included from d:\vyper-vyper\marlin\src\pins\pins.h:651:0, from Marlin\src\HAL\AVR../../inc/MarlinConfig.h:34, from Marlin\src\HAL\AVR\MarlinSerial.cpp:39: d:\vyper-vyper\marlin\src\pins\stm32f1/pins_AC_TRI_F1_V1.h:25:4: error: #error "Oops! Select an STM32F1 board in 'Tools

midicdj1000 commented 2 years ago

Ok, I managed to get this to compile. I followed the guide on the wiki, but I had to copy the json file into the ststm32@10.0.1 folder and it just compiled.

midicdj1000 commented 2 years ago

Now I am having trouble compiling it for manual bed leveling and getting these errors

Marlin\src\lcd\extui\lib\anycubic_dgus\dgus_tft.cpp:3362:13: error: 'ProbeTare' was not declared in this scope 3362 | ProbeTare(); | ^~~~~ Compiling .pio\build\ac_tri_f1\debug\src\src\module\stepper\indirection.cpp.o Marlin\src\lcd\extui\lib\anycubic_dgus\dgus_tft.cpp:3366:16: error: 'getProbeState' was not declared in this scope 3366 | if(getProbeState()) { // triggered too early | ^~~~~ Marlin\src\lcd\extui\lib\anycubic_dgus\dgus_tft.cpp:3390:37: error: 'getProbeState' was not declared in this scope 3390 | if(!probe_state_last && getProbeState()) { | ^~~~~ Compiling .pio\build\ac_tri_f1\debug\src\src\module\temperature.cpp.o Marlin\src\lcd\extui\lib\anycubic_dgus\dgus_tft.cpp:3397:32: error: 'getProbeState' was not declared in this scope 3397 | probe_state_last = getProbeState();