MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.22k stars 19.22k forks source link

MKS robin2 Wont compile Platform IO Bugfix 2.0.x #17745

Closed wookie666 closed 4 years ago

wookie666 commented 4 years ago

trying to compile marlin bugfix latest for a MKS Robin2 using VS Studio and platform io. I get the following compile errors.

Log Output ``` In file included from Marlin\src\HAL\STM32_F4_F7\../../inc/../HAL/HAL.h:26:0, from Marlin\src\HAL\STM32_F4_F7\../../inc/MarlinConfig.h:30, from Marlin\src\HAL\STM32_F4_F7\EmulatedEeprom.cpp:28: Marlin\src\HAL\STM32_F4_F7\../../inc/../HAL/./STM32_F4_F7/HAL.h:51:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ In file included from Marlin\src\HAL\STM32_F4_F7\HAL.cpp:26:0: Marlin\src\HAL\STM32_F4_F7\HAL.h:51:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ In file included from Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/pins.h:564:0, from Marlin\src\HAL\STM32_F4_F7\../../inc/MarlinConfig.h:32, from Marlin\src\HAL\STM32_F4_F7\EmulatedEeprom.cpp:28: Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:31:0: warning: "BOARD_NAME" redefined #define BOARD_NAME "MKS_ROBIN2" :0:0: note: this is the location of the previous definition In file included from Marlin\src\HAL\STM32_F4_F7\STM32F4\timers.cpp:25:0: Marlin\src\HAL\STM32_F4_F7\STM32F4\../HAL.h:51:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ In file included from Marlin\src\HAL\STM32_F4_F7\../../inc/../HAL/HAL.h:26:0, from Marlin\src\HAL\STM32_F4_F7\../../inc/MarlinConfig.h:30, from Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:35: Marlin\src\HAL\STM32_F4_F7\../../inc/../HAL/./STM32_F4_F7/HAL.h:51:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ In file included from Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/pins.h:564:0, from Marlin\src\HAL\STM32_F4_F7\../../inc/MarlinConfig.h:32, from Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:35: Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:31:0: warning: "BOARD_NAME" redefined #define BOARD_NAME "MKS_ROBIN2" :0:0: note: this is the location of the previous definition *** [.pio\build\STM32F4\src\src\HAL\STM32_F4_F7\HAL.cpp.o] Error 1 In file included from Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/pins.h:564:0, from Marlin\src\HAL\STM32_F4_F7\../../inc/MarlinConfig.h:32, from Marlin\src\HAL\STM32_F4_F7\EmulatedEeprom.cpp:28: Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:35:32: error: 'BOARD_INFO_NAME' was not declared in this scope #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME ^ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/language.h:86:26: note: in expansion of macro 'DEFAULT_MACHINE_NAME' #define MACHINE_NAME DEFAULT_MACHINE_NAME ^~~~~~~~~~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/../lcd/language/language_en.h:42:62: note: in expansion of macro 'MACHINE_NAME' PROGMEM Language_Str WELCOME_MSG = MACHINE_NAME _UxGT(" Ready."); ^~~~~~~~~~~~ *** [.pio\build\STM32F4\src\src\HAL\STM32_F4_F7\STM32F4\timers.cpp.o] Error 1 Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:35:32: note: suggested alternative: 'BOARD_NAME' #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME ^ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/language.h:86:26: note: in expansion of macro 'DEFAULT_MACHINE_NAME' #define MACHINE_NAME DEFAULT_MACHINE_NAME ^~~~~~~~~~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/../lcd/language/language_en.h:42:62: note: in expansion of macro 'MACHINE_NAME' PROGMEM Language_Str WELCOME_MSG = MACHINE_NAME _UxGT(" Ready."); ^~~~~~~~~~~~ In file included from Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/pins.h:564:0, from Marlin\src\HAL\STM32_F4_F7\../../inc/MarlinConfig.h:32, from Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:35: Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:35:32: error: 'BOARD_INFO_NAME' was not declared in this scope #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME ^ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/language.h:86:26: note: in expansion of macro 'DEFAULT_MACHINE_NAME' #define MACHINE_NAME DEFAULT_MACHINE_NAME ^~~~~~~~~~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/../lcd/language/language_en.h:42:62: note: in expansion of macro 'MACHINE_NAME' PROGMEM Language_Str WELCOME_MSG = MACHINE_NAME _UxGT(" Ready."); ^~~~~~~~~~~~ *** [.pio\build\STM32F4\src\src\HAL\STM32_F4_F7\EmulatedEeprom.cpp.o] Error 1 Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:35:32: note: suggested alternative: 'BOARD_NAME' #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME ^ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/language.h:86:26: note: in expansion of macro 'DEFAULT_MACHINE_NAME' #define MACHINE_NAME DEFAULT_MACHINE_NAME ^~~~~~~~~~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/../lcd/language/language_en.h:42:62: note: in expansion of macro 'MACHINE_NAME' PROGMEM Language_Str WELCOME_MSG = MACHINE_NAME _UxGT(" Ready."); ^~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp: In function 'void spiRead(uint8_t*, uint16_t)': Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:125:9: error: 'class SPIClass' has no member named 'dmaTransfer'; did you mean 'transfer'? SPI.dmaTransfer(0, const_cast(buf), nbyte); ^~~~~~~~~~~ transfer Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp: In function 'void spiSendBlock(uint8_t, const uint8_t*)': Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:157:9: error: 'class SPIClass' has no member named 'dmaSend' SPI.dmaSend(const_cast(buf), 512); ^~~~~~~ *** [.pio\build\STM32F4\src\src\HAL\STM32_F4_F7\HAL_SPI.cpp.o] Error 1 ```
ellensp commented 4 years ago

SERIAL_PORT cannot be 0. (Port 0 does not exist.) Set SERIAL_PORT to something else

ellensp commented 4 years ago

The internet says it should be "#define SERIAL_PORT 3" for your board.

wookie666 commented 4 years ago

sorry forgot to say. already went past that error. I still get.

Log Output ``` In file included from Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/pins.h:564:0, from Marlin\src\HAL\STM32_F4_F7\../../inc/MarlinConfig.h:32, from Marlin\src\HAL\STM32_F4_F7\EmulatedEeprom.cpp:28: Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:31:0: warning: "BOARD_NAME" redefined #define BOARD_NAME "MKS_ROBIN2" :0:0: note: this is the location of the previous definition In file included from Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/pins.h:564:0, from Marlin\src\HAL\STM32_F4_F7\../../inc/MarlinConfig.h:32, from Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:35: Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:31:0: warning: "BOARD_NAME" redefined #define BOARD_NAME "MKS_ROBIN2" :0:0: note: this is the location of the previous definition In file included from Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/pins.h:564:0, from Marlin\src\HAL\STM32_F4_F7\../../inc/MarlinConfig.h:32, from Marlin\src\HAL\STM32_F4_F7\EmulatedEeprom.cpp:28: Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:35:32: error: 'BOARD_INFO_NAME' was not declared in this scope #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME ^ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/language.h:86:26: note: in expansion of macro 'DEFAULT_MACHINE_NAME' #define MACHINE_NAME DEFAULT_MACHINE_NAME ^~~~~~~~~~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/../lcd/language/language_en.h:42:62: note: in expansion of macro 'MACHINE_NAME' PROGMEM Language_Str WELCOME_MSG = MACHINE_NAME _UxGT(" Ready."); ^~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:35:32: note: suggested alternative: 'BOARD_NAME' #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME ^ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/language.h:86:26: note: in expansion of macro 'DEFAULT_MACHINE_NAME' #define MACHINE_NAME DEFAULT_MACHINE_NAME ^~~~~~~~~~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/../lcd/language/language_en.h:42:62: note: in expansion of macro 'MACHINE_NAME' PROGMEM Language_Str WELCOME_MSG = MACHINE_NAME _UxGT(" Ready."); ^~~~~~~~~~~~ *** [.pio\build\STM32F4\src\src\HAL\STM32_F4_F7\EmulatedEeprom.cpp.o] Error 1 In file included from Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/pins.h:564:0, from Marlin\src\HAL\STM32_F4_F7\../../inc/MarlinConfig.h:32, from Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:35: Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:35:32: error: 'BOARD_INFO_NAME' was not declared in this scope #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME ^ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/language.h:86:26: note: in expansion of macro 'DEFAULT_MACHINE_NAME' #define MACHINE_NAME DEFAULT_MACHINE_NAME ^~~~~~~~~~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/../lcd/language/language_en.h:42:62: note: in expansion of macro 'MACHINE_NAME' PROGMEM Language_Str WELCOME_MSG = MACHINE_NAME _UxGT(" Ready."); ^~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\../../inc/../pins/stm32f4/pins_MKS_ROBIN2.h:35:32: note: suggested alternative: 'BOARD_NAME' #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME ^ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/language.h:86:26: note: in expansion of macro 'DEFAULT_MACHINE_NAME' #define MACHINE_NAME DEFAULT_MACHINE_NAME ^~~~~~~~~~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\../../inc/../core/../lcd/language/language_en.h:42:62: note: in expansion of macro 'MACHINE_NAME' PROGMEM Language_Str WELCOME_MSG = MACHINE_NAME _UxGT(" Ready."); ^~~~~~~~~~~~ Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp: In function 'void spiRead(uint8_t*, uint16_t)': Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:125:9: error: 'class SPIClass' has no member named 'dmaTransfer'; did you mean 'transfer'? SPI.dmaTransfer(0, const_cast(buf), nbyte); ^~~~~~~~~~~ transfer Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp: In function 'void spiSendBlock(uint8_t, const uint8_t*)': Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:157:9: error: 'class SPIClass' has no member named 'dmaSend' SPI.dmaSend(const_cast(buf), 512); ^~~~~~~ *** [.pio\build\STM32F4\src\src\HAL\STM32_F4_F7\HAL_SPI.cpp.o] Error 1 ```
ellensp commented 4 years ago

bug in Marlin/src/pins/stm32f4/pins_MKS_ROBIN2.h change the following

#ifndef BOARD_INFO_NAME
  #define BOARD_NAME "MKS_ROBIN2"
#endif

into this

#ifndef BOARD_INFO_NAME
  #define BOARD_INFO_NAME "MKS_ROBIN2"
#endif
wookie666 commented 4 years ago

fixed that part. Now this

Log Output ``` Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp: In function 'void spiRead(uint8_t*, uint16_t)': Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:125:9: error: 'class SPIClass' has no member named 'dmaTransfer'; did you mean 'transfer'? SPI.dmaTransfer(0, const_cast(buf), nbyte); ^~~~~~~~~~~ transfer Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp: In function 'void spiSendBlock(uint8_t, const uint8_t*)': Marlin\src\HAL\STM32_F4_F7\HAL_SPI.cpp:157:9: error: 'class SPIClass' has no member named 'dmaSend' SPI.dmaSend(const_cast(buf), 512); ^~~~~~~ *** [.pio\build\STM32F4\src\src\HAL\STM32_F4_F7\HAL_SPI.cpp.o] Error 1 ```
ellensp commented 4 years ago

please attach Configuration files and platformio.ini file.

wookie666 commented 4 years ago

Configuration.zip pio.zip

not sure exactly whats needed with the platform io file. ive atached everything i think is needed.

ellensp commented 4 years ago

the real marlin doesnt seem to have support for this board. are you compiling MKS code? ie https://github.com/makerbase-mks/MKS-Robin2/tree/master/firmware/Marlin2.0-MKS-Robin2

wookie666 commented 4 years ago

Tried that too. It asks for me to install git. I wanted to try pure Marlin to test because I'm getting knocking sounds on the MKS code with lv8729 drivers. Similar to this video https://youtu.be/VuU9CssOD0Y

I'm not sure what it is

On Mon, Apr 27, 2020, 10:32 PM ellensp notifications@github.com wrote:

the real marlin doesnt seem to have support for this board. are compiling MKS code? ie https://github.com/makerbase-mks/MKS-Robin2/tree/master/firmware/Marlin2.0-MKS-Robin2

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/17745#issuecomment-619956910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNT7HRJSED3AU7OSOSA7DROV3OTANCNFSM4MR2NGDA .

sjasonsmith commented 4 years ago

You probably shouldn’t be compiling source in the HAL/STM32_F4_F7 folder, which is where your latest errors are from. You should try using HAL/STM32 instead. This is true even if you have an F4 or F7 MCU.

wookie666 commented 4 years ago

I'll try that tomorrow. Any idea what the clicking /knocking noise would be in that YouTube video I've linked. It's not as bad when running slower

On Mon, Apr 27, 2020, 11:07 PM Jason Smith notifications@github.com wrote:

You probably shouldn’t be compiling source in the HAL/STM32_F4_F7 folder, which is where your latest errors are from. You should try using HAL/STM32 instead. This is true even if you have an F4 or F7 MCU.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/17745#issuecomment-619973868, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNT7HMXVCVYP3QKHSA7RTROV7PTANCNFSM4MR2NGDA .

wookie666 commented 4 years ago

im clicking eng:stm32f4 and then build. I cannot find a env:stm32 folder on its own

sjasonsmith commented 4 years ago

Oh, that environment is just the for test I think. I doubt any board would actually work with it. If you want to use the Marlin repo with this board I suggest you go to the MKS repo to see what changes they made. You’ll have to change quite a few things for a new STM32 board.

wookie666 commented 4 years ago

yeah i would have to change heaps. Im just trying to figure out why i cannot run this at 1/128 steps without it sounding like its going into quad step mode. It sounds like its skipping steps. But its not losing position. Any idea? Best i can do is 1/32 steps at 60mm second and even then. I still get the odd sound every second or so

sjasonsmith commented 4 years ago

Running at 128 micro steps overloads even fast processors, unless you are printing at very slow speeds. Most of us seem to just run in 16 then let the TMC drivers interpolate to 256.

Micro stepping isn’t at all what this issue was opened for though, so I was responding to the build questions. Perhaps close this issue and go to the record channel or one of the other support venues for general help.

wookie666 commented 4 years ago

thanks mate. i think ill have to invest in TMC drivers. Im currently using LM7806 MKS drivers. so ill just stick to 1/32 steps for now. and i have multiple issues. Im not going to open another case for an issue ive already asked about. if you cant help me, ill find it elsewhere

On Tue, Apr 28, 2020 at 1:14 AM Jason Smith notifications@github.com wrote:

Running at 128 micro steps overloads even fast processors, unless you are printing at very slow speeds. Most of us seem to just run in 16 then let the TMC drivers interpolate to 256.

Micro stepping isn’t at all what this issue was opened for though, so I was responding to the build questions. Perhaps close this issue and go to the record channel or one of the other support venues for general help.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/17745#issuecomment-620049616, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNT7ERONF7Q2QBHNWOUNDROWOOFANCNFSM4MR2NGDA .

github051 commented 4 years ago

thanks mate. i think ill have to invest in TMC drivers. Im currently using LM7806 MKS drivers. so ill just stick to 1/32 steps for now. and i have multiple issues. Im not going to open another case for an issue ive already asked about. if you cant help me, ill find it elsewhere On Tue, Apr 28, 2020 at 1:14 AM Jason Smith @.***> wrote: Running at 128 micro steps overloads even fast processors, unless you are printing at very slow speeds. Most of us seem to just run in 16 then let the TMC drivers interpolate to 256. Micro stepping isn’t at all what this issue was opened for though, so I was responding to the build questions. Perhaps close this issue and go to the record channel or one of the other support venues for general help. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#17745 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNT7ERONF7Q2QBHNWOUNDROWOOFANCNFSM4MR2NGDA .

With TMC 2208 I tried. But same issue. 6 months back I posted this issue to MKS but no response till now.Mks robin2 is worst board.

wookie666 commented 4 years ago

thanks mate. i think ill have to invest in TMC drivers. Im currently using LM7806 MKS drivers. so ill just stick to 1/32 steps for now. and i have multiple issues. Im not going to open another case for an issue ive already asked about. if you cant help me, ill find it elsewhere On Tue, Apr 28, 2020 at 1:14 AM Jason Smith @.***> wrote: Running at 128 micro steps overloads even fast processors, unless you are printing at very slow speeds. Most of us seem to just run in 16 then let the TMC drivers interpolate to 256. Micro stepping isn’t at all what this issue was opened for though, so I was responding to the build questions. Perhaps close this issue and go to the record channel or one of the other support venues for general help. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#17745 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNT7ERONF7Q2QBHNWOUNDROWOOFANCNFSM4MR2NGDA .

With TMC 2208 I tried. But same issue. 6 months back I posted this issue to MKS but no response till now.Mks robin2 is worst board.

Yeah im starting to think the same thing. it works on their firmware. But it clicks/knocks and has really weird sounds. Almost like acceleration is way too high. not sure. only happens on their board. Also, octoprint will not print to it. it keeps freezing/pausing during printing. multiple times on one layer. Almost like it cant keep up or the board cant keep up.

boelle commented 4 years ago

@wookie666 is this still an issue?

wookie666 commented 4 years ago

Not sure mate I gave up

On Sun, Jun 21, 2020, 8:58 AM Bo Herrmannsen notifications@github.com wrote:

@wookie666 https://github.com/wookie666 is this still an issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/17745#issuecomment-647054541, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDNT7AFNXZQUZJC3NJW4VLRXU5KBANCNFSM4MR2NGDA .

boelle commented 4 years ago

will close then, we can always reopen

mbfab commented 4 years ago

I have a similar problem, but i have a SKR Mini E3 v2.0

I have tried following to get a firmware that works, I have downloaded the firmware from the Bigtreetech, DONT Work, My latest attempt I have downloaded the latest bugfix for Marlin 2.0.x, I also downloaded the latest Configurations for my printer and pasted in the 4 files into the marlin folder and clicked replace. I changed to the correct Motherboard in Configuration.h, and changed to the right card in platformio.ini... still i get this problems.

I get the following error codes.

Log Output ``` In file included from Marlin/src/HAL/STM32F1/../../inc/../HAL/HAL.h:26:0, from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:30, from Marlin/src/HAL/STM32F1/HAL.cpp:30: Marlin/src/HAL/STM32F1/../../inc/../HAL/./STM32F1/HAL.h:81:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ In file included from Marlin/src/HAL/STM32F1/../../inc/../HAL/HAL.h:26:0, from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:30, from Marlin/src/HAL/STM32F1/HAL_SPI.cpp:35: Marlin/src/HAL/STM32F1/../../inc/../HAL/./STM32F1/HAL.h:81:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ In file included from Marlin/src/HAL/STM32F1/../../inc/../HAL/HAL.h:26:0, from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:30, from Marlin/src/HAL/STM32F1/Servo.cpp:25: Marlin/src/HAL/STM32F1/../../inc/../HAL/./STM32F1/HAL.h:81:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ Compiling .pio/build/STM32F103RC_btt_512K/src/src/HAL/STM32F1/eeprom_wired.cpp.o In file included from Marlin/src/HAL/STM32F1/dogm/../../../inc/../HAL/HAL.h:26:0, from Marlin/src/HAL/STM32F1/dogm/../../../inc/MarlinConfig.h:30, from Marlin/src/HAL/STM32F1/dogm/u8g_com_stm32duino_fsmc.cpp:29: Marlin/src/HAL/STM32F1/dogm/../../../inc/../HAL/./STM32F1/HAL.h:81:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ *** [.pio/build/STM32F103RC_btt_512K/src/src/HAL/STM32F1/HAL.cpp.o] Error 1 In file included from Marlin/src/HAL/STM32F1/dogm/../../../inc/../HAL/HAL.h:26:0, from Marlin/src/HAL/STM32F1/dogm/../../../inc/MarlinConfig.h:30, from Marlin/src/HAL/STM32F1/dogm/u8g_com_stm32duino_swspi.cpp:21: Marlin/src/HAL/STM32F1/dogm/../../../inc/../HAL/./STM32F1/HAL.h:81:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ In file included from Marlin/src/HAL/STM32F1/../../inc/../HAL/HAL.h:26:0, from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:30, from Marlin/src/HAL/STM32F1/eeprom_flash.cpp:32: Marlin/src/HAL/STM32F1/../../inc/../HAL/./STM32F1/HAL.h:81:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ *** [.pio/build/STM32F103RC_btt_512K/src/src/HAL/STM32F1/HAL_SPI.cpp.o] Error 1 In file included from Marlin/src/HAL/STM32F1/../../inc/../HAL/HAL.h:26:0, from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:30, from Marlin/src/HAL/STM32F1/eeprom_sdcard.cpp:30: Marlin/src/HAL/STM32F1/../../inc/../HAL/./STM32F1/HAL.h:81:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ *** [.pio/build/STM32F103RC_btt_512K/src/src/HAL/STM32F1/Servo.cpp.o] Error 1 *** [.pio/build/STM32F103RC_btt_512K/src/src/HAL/STM32F1/dogm/u8g_com_stm32duino_fsmc.cpp.o] Error 1 *** [.pio/build/STM32F103RC_btt_512K/src/src/HAL/STM32F1/dogm/u8g_com_stm32duino_swspi.cpp.o] Error 1 *** [.pio/build/STM32F103RC_btt_512K/src/src/HAL/STM32F1/eeprom_flash.cpp.o] Error 1 *** [.pio/build/STM32F103RC_btt_512K/src/src/HAL/STM32F1/eeprom_sdcard.cpp.o] Error 1 In file included from Marlin/src/HAL/STM32F1/../../inc/../HAL/HAL.h:26:0, from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:30, from Marlin/src/HAL/STM32F1/eeprom_wired.cpp:22: Marlin/src/HAL/STM32F1/../../inc/../HAL/./STM32F1/HAL.h:81:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration." ^~~~~ *** [.pio/build/STM32F103RC_btt_512K/src/src/HAL/STM32F1/eeprom_wired.cpp.o] Error 1 ```

It's really seems to be a mess to update the firmware, I have tried to resolve this for 2 days now, when i fix one fault another appears.

thisiskeithb commented 4 years ago

@mbfab: There's no need to comment on random PRs and old unrelated issues.

This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

After seeking help from the community, if the consensus points to a bug in Marlin, then you should post a bug report.

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.