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.28k stars 19.23k forks source link

[PROBLEM] SOLVED (Ender-3 v2 with 4.2.2 board) #22202

Closed zonalimitatore closed 3 years ago

zonalimitatore commented 3 years ago

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

With the last release on a ender 3 v2 with 4.2.2 silent board,i can't compile it due this problem on compile. If i try to compile with stock cr10 screen, i have black screen and beeeeeep

Marlin\src\lcd\dwin\dwin_lcd.cpp: In function 'void DWIN_Send(size_t&)': Marlin\src\lcd\dwin\dwin_lcd.cpp:85:20: error: 'MYSERIAL1' was not declared in this scope LOOP_L_N(n, i) { MYSERIAL1.write(DWIN_SendBuf[n]); delayMicroseconds(1); } ^~~~~ Marlin\src\lcd\dwin\dwin_lcd.cpp:85:20: note: suggested alternative: 'MYSERIAL0' LOOP_L_N(n, i) { MYSERIAL1.write(DWIN_SendBuf[n]); delayMicroseconds(1); } ^~~~~ MYSERIAL0 Marlin\src\lcd\dwin\dwin_lcd.cpp:86:20: error: 'MYSERIAL1' was not declared in this scope LOOP_L_N(n, 4) { MYSERIAL1.write(DWIN_BufTail[n]); delayMicroseconds(1); } ^~~~~ Marlin\src\lcd\dwin\dwin_lcd.cpp:86:20: note: suggested alternative: 'MYSERIAL0' LOOP_L_N(n, 4) { MYSERIAL1.write(DWIN_BufTail[n]); delayMicroseconds(1); } ^~~~~ MYSERIAL0 Marlin\src\lcd\dwin\dwin_lcd.cpp: In function 'bool DWIN_Handshake()': Marlin\src\lcd\dwin\dwin_lcd.cpp:97:10: error: 'MYSERIAL1' was not declared in this scope while (MYSERIAL1.available() > 0 && recnum < (signed)sizeof(databuf)) { ^~~~~ Marlin\src\lcd\dwin\dwin_lcd.cpp:97:10: note: suggested alternative: 'MYSERIAL0' while (MYSERIAL1.available() > 0 && recnum < (signed)sizeof(databuf)) { ^~~~~ MYSERIAL0 Compiling .pio\build\STM32F103RET6_creality\src\src\lcd\marlinui.cpp.o *** [.pio\build\STM32F103RET6_creality\src\src\lcd\dwin\dwin_lcd.cpp.o] Error 1

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

2.0.9

Printer model

ender 3 v2

Electronics

creality v 4.2.2 silent

Add-ons

No response

Your Slicer

No response

Host Software

No response

Additional information & file uploads

No response

ellensp commented 3 years ago

Cannot replicate this issue using bugfix and bugfix example configs Delete your hidden Marlin/.pio directory and try again

ellensp commented 3 years ago

I also know that @CRCinAU compiles for printer and board daily. If there where a compiling issue he would be all over it.

CRCinAU commented 3 years ago

Yep - no issues detected here... Ensure you're using the latest sets of Configuration files from here: https://github.com/MarlinFirmware/Configurations/tree/bugfix-2.0.x/config/examples/Creality/Ender-3%20V2

CRCinAU commented 3 years ago

At the same time though, I don't know why you're trying to enable a CR10 screen on the V2 unless you've replaced the screen.

ellensp commented 3 years ago

disabling DWIN_CREALITY_LCD and enabling CR10_STOCKDISPLAY and adding to required #define RET6_12864_LCD that marlin tells you about. Also compiles without out issues. (but I haven't tested actually works)

zonalimitatore commented 3 years ago

Ok.I try the solutions

zonalimitatore commented 3 years ago

With clean version of marlin and last config,i've got this:

`In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash\flash_storage.cpp:23: Marlin\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash\media_file_reader.cpp:23: Marlin\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash\flash_storage.cpp.o] Error 1 [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\archim2-flash\media_file_reader.cpp.o] Error 1 In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../config.h:24, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\confirm_home_e.cpp:23: Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../config.h:24, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\confirm_home_xyz.cpp:23: Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../config.h:24, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\advanced_settings.cpp:23: Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\confirm_home_xyz.cpp.o] Error 1 [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\confirm_home_e.cpp.o] Error 1 *** [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\advanced_settings.cpp.o] Error 1 In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../config.h:24, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\printing_dialog_box.cpp:23: Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../config.h:24, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\status_screen.cpp:24: Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ *** [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\printing_dialog_box.cpp.o] Error 1 In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../config.h:24, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\main_menu.cpp:23: Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\status_screen.cpp.o] Error 1 [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\main_menu.cpp.o] Error 1 In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../config.h:24, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\tune_menu.cpp:23: Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\bioprinter../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ *** [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\bioprinter\tune_menu.cpp.o] Error 1 In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press../config.h:24, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press\load_chocolate.cpp:24: Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ In file included from C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30:0, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\shared\marduino.h:36, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\stm32f1\hal.h:32, from c:\users\bax\desktop\happygross - copia\marlin\src\hal\hal.h:30, from c:\users\bax\desktop\happygross - copia\marlin\src\inc\marlinconfig.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press../../ui_api.h:45, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press../compat.h:31, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press../config.h:24, from Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press\advanced_settings_menu.cpp:23: Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press../../ui_api.h: In function 'void ExtUI::simulateUserClick()': C:\Users\Bax.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:86:14: error: assignment of read-only variable 'MarlinUI::lcd_clicked'

define true 0x1

          ^

Marlin\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press../../ui_api.h:193:54: note: in expansion of macro 'true' inline void simulateUserClick() { ui.lcd_clicked = true; } ^~~~ [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press\load_chocolate.cpp.o] Error 1 [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\ftdi_eve_touch_ui\cocoa_press\advanced_settings_menu.cpp.o] Error 1 ================================================================================================= [FAILED] Took 44.00 seconds =================================================================================================

Environment Status Duration


STM32F103RET6_creality FAILED 00:00:44.004 ============================================================================================ 1 failed, 0 succeeded in 00:00:44.004 ============================================================================================`

ellensp commented 3 years ago

current marlin build env STM32F103RET6_creality does not use maple and your getting framework-arduinoststm32-maple errors.

delete .pio directory in Marlin

ellensp commented 3 years ago

marlin 2.0.8.2 is the last version where STM32F103RET6_creality uses maple. 2.0.9 created new build environment STM32F103RET6_creality_maple wich uses maple and STM32F103RET6_creality wich does not

If you upgrade from 2.0.8.2 or older to 2.0.9 or newer. you have to remove the .pio directory as platformio does not realize that the previous STM32F103RET6_creality is not the same as the newer STM32F103RET6_creality

The-EG commented 3 years ago

disabling DWIN_CREALITY_LCD and enabling CR10_STOCKDISPLAY and adding to required #define RET6_12864_LCD that marlin tells you about. Also compiles without out issues. (but I haven't tested actually works)

I can confirm that this does actually work if you replace the DWIN with the 'old' LCD (same as a E3Pro or v1). I've been using that setup on my Ender 3 v2 for several months. After swapping the screens out, it's essentially an Ender 3 Pro with a 4.2.2 board and you could just use that example as a starting point instead.

zonalimitatore commented 3 years ago

Yes.I've do it. But same errors as before. This is when i've clean the folder and rebuild with a clean config: Processing STM32F103RET6_creality (platform: ststm32@~12.0; board: genericSTM32F103RE; framework: arduino) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Tool Manager: Installing platformio/framework-arduinoststm32-maple @ ~3.10000.0 Unpacking [####################################] 100% Tool Manager: framework-arduinoststm32-maple @ 3.10000.201129 has been installed! Verbose mode can be enabled via-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html PLATFORM: ST STM32 (12.0.0) > STM32F103RE (64k RAM. 512k Flash) HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash DEBUG: Current (jlink) External (blackmagic, cmsis-dap, jlink, stlink) PACKAGES:

And again the same error

ellensp commented 3 years ago

still says framework-arduinoststm32-maple still an old marlin/platfomio.ini not current release or bugfix

ellensp commented 3 years ago

should say for STM32F103RET6_creality

Processing STM32F103RET6_creality (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html
PLATFORM: ST STM32 (12.1.1) > STM32F103RE (64k RAM. 512k Flash)
HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash
DEBUG: Current (jlink) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32 4.10900.200819 (1.9.0) 
 - framework-cmsis 2.50501.200527 (5.5.1) 
 - toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 10 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <SPI> 1.0
|-- <Servo> 1.1.2
|-- <EEPROM> 2.0.1
|-- <SoftwareSerial> 1.0
|-- <IWatchdog> 1.0.0
|-- <Wire> 1.0

or if STM32F103RET6_creality_maple

Processing STM32F103RET6_creality_maple (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html
PLATFORM: ST STM32 (12.1.1) > STM32F103RE (64k RAM. 512k Flash)
HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash
DEBUG: Current (jlink) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32-maple 3.10000.201129 (1.0.0) 
 - tool-stm32duino 1.0.1 
 - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 27 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <SoftwareSerialM> 1.0.0
|-- <STM32ADC> 1.0
|-- <EEPROM>
|-- <USBComposite for STM32F1> 0.99
|-- <Wire> 1.0
|-- <Servo(STM32F1)> 1.1.2
ellensp commented 3 years ago

delete your C:\Users\Bax\.platformio force platformio to reinstall all build environments and other dependencies

zonalimitatore commented 3 years ago

ok i try

ellensp commented 3 years ago

check your ini/stm32f1.ini files

It should have

[common_stm32]
platform      = ststm32@~12.1

not 12.0

or if using maple ini/stm32f1-maple.ini

should have

[common_stm32f1]
platform          = ststm32@~12.1

still not 12.0

zonalimitatore commented 3 years ago

DAMN....The same...Continue to give me maple:

Processing STM32F103RET6_creality (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Tool Manager: Installing platformio/toolchain-gccarmnoneeabi @ >=1.60301.0,<1.80000.0 Unpacking [####################################] 100% Tool Manager: toolchain-gccarmnoneeabi @ 1.70201.0 has been installed! Verbose mode can be enabled via-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html PLATFORM: ST STM32 (12.1.1) > STM32F103RE (64k RAM. 512k Flash) HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash DEBUG: Current (jlink) External (blackmagic, cmsis-dap, jlink, stlink) PACKAGES:

zonalimitatore commented 3 years ago

Now,deleting board_build.core = maple

Processing STM32F103RET6_creality (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Tool Manager: Installing platformio/toolchain-gccarmnoneeabi @ ~1.90201.0 Downloading [####################################] 100% Unpacking [####################################] 100% Tool Manager: toolchain-gccarmnoneeabi @ 1.90201.191206 has been installed! Tool Manager: Installing platformio/framework-cmsis @ ~2.50501.0 Downloading [####################################] 100% Unpacking [####################################] 100% Tool Manager: framework-cmsis @ 2.50501.200527 has been installed! Tool Manager: Installing platformio/framework-arduinoststm32 @ ~4.10900.0 Downloading [####################################] 100% Unpacking [####################################] 100% Tool Manager: framework-arduinoststm32 @ 4.10900.200819 has been installed! Verbose mode can be enabled via-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html PLATFORM: ST STM32 (12.1.1) > STM32F103RE (64k RAM. 512k Flash) HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash DEBUG: Current (jlink) External (blackmagic, cmsis-dap, jlink, stlink) PACKAGES:

`In file included from Marlin\src\HAL\STM32F1\tft../../../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\HAL\STM32F1\tft../../../inc/../HAL/HAL.h:30, from Marlin\src\HAL\STM32F1\tft../../../inc/MarlinConfig.h:31, from Marlin\src\HAL\STM32F1\tft\tft_fsmc.cpp:23: Marlin\src\HAL\STM32F1\tft../../../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. In file included from Marlin\src\HAL\shared../../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\HAL\shared../../inc/../HAL/HAL.h:30, from Marlin\src\HAL\shared../../inc/MarlinConfig.h:31, from Marlin\src\HAL\shared\Delay.cpp:24: Marlin\src\HAL\shared../../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. In file included from Marlin\src\HAL\shared../../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\HAL\shared../../inc/../HAL/HAL.h:30, from Marlin\src\HAL\shared../../inc/MarlinConfig.h:31, from Marlin\src\HAL\shared\servo.cpp:53: Marlin\src\HAL\shared../../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. In file included from Marlin\src\HAL\STM32F1\tft../../../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\HAL\STM32F1\tft../../../inc/../HAL/HAL.h:30, from Marlin\src\HAL\STM32F1\tft../../../inc/MarlinConfig.h:31, from Marlin\src\HAL\STM32F1\tft\xpt2046.cpp:23: Marlin\src\HAL\STM32F1\tft../../../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. In file included from Marlin\src\HAL\STM32F1\tft../../../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\HAL\STM32F1\tft../../../inc/../HAL/HAL.h:30, from Marlin\src\HAL\STM32F1\tft../../../inc/MarlinConfig.h:31, from Marlin\src\HAL\STM32F1\tft\tft_spi.cpp:23: Marlin\src\HAL\STM32F1\tft../../../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. [.pio\build\STM32F103RET6_creality\src\src\HAL\shared\servo.cpp.o] Error 1 [.pio\build\STM32F103RET6_creality\src\src\HAL\STM32F1\tft\tft_fsmc.cpp.o] Error 1 [.pio\build\STM32F103RET6_creality\src\src\HAL\shared\Delay.cpp.o] Error 1 [.pio\build\STM32F103RET6_creality\src\src\HAL\STM32F1\tft\xpt2046.cpp.o] Error 1 *** [.pio\build\STM32F103RET6_creality\src\src\HAL\STM32F1\tft\tft_spi.cpp.o] Error 1 In file included from Marlin\src\HAL\shared../../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\HAL\shared../../inc/../HAL/HAL.h:30, from Marlin\src\HAL\shared../../inc/MarlinConfig.h:31, from Marlin\src\HAL\shared\esp_wifi.cpp:23: Marlin\src\HAL\shared../../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. In file included from Marlin\src\HAL\shared../../core/../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\HAL\shared../../core/../inc/../HAL/HAL.h:30, from Marlin\src\HAL\shared../../core/../inc/MarlinConfig.h:31, from Marlin\src\HAL\shared../../core/serial.h:24, from Marlin\src\HAL\shared\HAL_MinSerial.h:24, from Marlin\src\HAL\shared\HAL_MinSerial.cpp:22: Marlin\src\HAL\shared../../core/../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. [.pio\build\STM32F103RET6_creality\src\src\HAL\shared\esp_wifi.cpp.o] Error 1 [.pio\build\STM32F103RET6_creality\src\src\HAL\shared\HAL_MinSerial.cpp.o] Error 1 In file included from Marlin\src\inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\inc/../HAL/HAL.h:30, from Marlin\src\inc/MarlinConfig.h:31, from Marlin\src\MarlinCore.h:24, from Marlin\src\MarlinCore.cpp:31: Marlin\src\inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. In file included from Marlin\src\core../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\core../inc/../HAL/HAL.h:30, from Marlin\src\core../inc/MarlinConfig.h:31, from Marlin\src\core\serial.h:24, from Marlin\src\core\serial.cpp:23: Marlin\src\core../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. In file included from Marlin\src\core../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\core../inc/../HAL/HAL.h:30, from Marlin\src\core../inc/MarlinConfig.h:31, from Marlin\src\core../MarlinCore.h:24, from Marlin\src\core\utility.cpp:25: Marlin\src\core../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. [.pio\build\STM32F103RET6_creality\src\src\MarlinCore.cpp.o] Error 1 [.pio\build\STM32F103RET6_creality\src\src\core\serial.cpp.o] Error 1 *** [.pio\build\STM32F103RET6_creality\src\src\core\utility.cpp.o] Error 1 In file included from Marlin\src\feature../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\feature../inc/../HAL/HAL.h:30, from Marlin\src\feature../inc/MarlinConfig.h:31, from Marlin\src\feature\ammeter.cpp:23: Marlin\src\feature../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. *** [.pio\build\STM32F103RET6_creality\src\src\feature\ammeter.cpp.o] Error 1 In file included from Marlin\src\feature../inc/../HAL/./STM32F1/HAL.h:36, from Marlin\src\feature../inc/../HAL/HAL.h:30, from Marlin\src\feature../inc/MarlinConfig.h:31, from Marlin\src\feature\babystep.cpp:23: Marlin\src\feature../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory 30 #include <libmaple/gpio.h> ^~~~~ compilation terminated. *** [.pio\build\STM32F103RET6_creality\src\src\feature\babystep.cpp.o] Error 1 ================================================================================================= [FAILED] Took 562.88 seconds ================================================================================================= Environment Status Duration

STM32F103RET6_creality FAILED 00:09:22.880 ============================================================================================ 1 failed, 0 succeeded in 00:09:22.880 ============================================================================================ The terminal process "C:\Users\Bax.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

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

ellensp commented 3 years ago

There is a lot of code in that log that platformio should be skipping as not needed in there, that it is not skipping.

for eg my full log doesn't include the string ftdi_eve_touch_ui at all, it is skipped.

Start from scratch

you downloaded marlin you downloaded the example configs you copy the example you want into marlin.

now you open vscode now go to the menu. File | Open Folder select the marlin directory with the platformio.ini file in it.

now build. If using the marlin auto builder you select a build environment from the menu If building using the build icon on bottom task bar ov vscode you first need to set default_envs in platfomio.ini to either STM32F103RET6_creality or STM32F103RET6_creality_maple.

This is my full build log out.zip

zonalimitatore commented 3 years ago

There is a lot of code in that log that platformio should be skipping as not needed in there, that it is not skipping.

for eg my full log doesn't include the string ftdi_eve_touch_ui at all, it is skipped.

Start from scratch

you downloaded marlin you downloaded the example configs you copy the example you want into marlin.

now you open vscode now go to the menu. File | Open Folder select the marlin directory with the platformio.ini file in it.

now build. If using the marlin auto builder you select a build environment from the menu If building using the build icon on bottom task bar ov vscode you first need to set default_envs in platfomio.ini to either STM32F103RET6_creality or STM32F103RET6_creality_maple.

This is my full build log out.zip

Is what i've done,man :(

ellensp commented 3 years ago

make clean and delete .pio filder and zip it up your entire marlin and attach it for examination

zonalimitatore commented 3 years ago

ok

ellensp commented 3 years ago

hopefully its small enough to allow that....

zonalimitatore commented 3 years ago

Marlin.zip

Here attached!

ellensp commented 3 years ago

one directory to high, want to see platformio.ini and buildroot directory

thisiskeithb commented 3 years ago
Your configs build fine:

```prolog Indexing .pio/build/STM32F103RET6_creality/lib719/libWire.a Linking .pio/build/STM32F103RET6_creality/firmware-20210623-053633.elf Checking size .pio/build/STM32F103RET6_creality/firmware-20210623-053633.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [= ] 11.1% (used 7304 bytes from 65536 bytes) Flash: [=== ] 25.9% (used 135832 bytes from 524288 bytes) Building .pio/build/STM32F103RET6_creality/firmware-20210623-053633.bin ======================================================= [SUCCESS] Took 31.59 seconds ======================================================= Environment Status Duration ---------------------- -------- ------------ STM32F103RET6_creality SUCCESS 00:00:31.586 ======================================================== 1 succeeded in 00:00:31.586 ======================================================== Terminal will be reused by tasks, press any key to close it. ```

zonalimitatore commented 3 years ago

Your configs build fine:

Indexing .pio/build/STM32F103RET6_creality/lib719/libWire.a
Linking .pio/build/STM32F103RET6_creality/firmware-20210623-053633.elf
Checking size .pio/build/STM32F103RET6_creality/firmware-20210623-053633.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  11.1% (used 7304 bytes from 65536 bytes)
Flash: [===       ]  25.9% (used 135832 bytes from 524288 bytes)
Building .pio/build/STM32F103RET6_creality/firmware-20210623-053633.bin
======================================================= [SUCCESS] Took 31.59 seconds =======================================================

Environment             Status    Duration
----------------------  --------  ------------
STM32F103RET6_creality  SUCCESS   00:00:31.586
======================================================== 1 succeeded in 00:00:31.586 ========================================================

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

what the ........

ellensp commented 3 years ago

and there are no odd changes in the marlin source provided.

zonalimitatore commented 3 years ago

happygross - Copia.zip

ellensp commented 3 years ago

The provided zip there are 55 changed files from marlin 2.0.9 and yes it errors

ellensp commented 3 years ago

Your platfomio.ini is quite broken and causing most of the issues

it is missing file filters


  -<src/lcd/extui/anycubic_chiron>
  -<src/lcd/extui/anycubic_i3mega>
  -<src/lcd/extui/dgus> -<src/lcd/extui/dgus/fysetc> -<src/lcd/extui/dgus/hiprecy> -<src/lcd/extui/dgus/mks> -<src/lcd/extui/dgus/origin>
  -<src/lcd/extui/example>
  -<src/lcd/extui/ftdi_eve_touch_ui>
  -<src/lcd/extui/malyan>
  -<src/lcd/extui/mks_ui>
  -<src/lcd/extui/nextion>

and there are lots of other little issues (51 changes that are missing or extra or just just wrong version in folders outside of the Marlin sub folder)

Download a fresh marlin 2.0.9 and replace all files, not just the files from the Marlin sub directory.

NB once you have attempted to build with the damaged platformio.ini you need to delete .pio again.

Here is the full diff platfomio.ini

diff --git a/platformio.ini b/platformio.ini
index f55f5f5a93..9967e5bedf 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -13,8 +13,11 @@
 [platformio]
 src_dir      = Marlin
 boards_dir   = buildroot/share/PlatformIO/boards
-default_envs = mega2560
+default_envs = STM32F103RET6_creality
 include_dir  = Marlin
+
+
+
 extra_configs =
     ini/avr.ini
     ini/due.ini
@@ -24,7 +27,6 @@ extra_configs =
     ini/native.ini
     ini/samd51.ini
     ini/stm32f0.ini
-    ini/stm32f1-maple.ini
     ini/stm32f1.ini
     ini/stm32f4.ini
     ini/stm32f7.ini
@@ -71,14 +73,15 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
   -<src/lcd/menu/menu_touch_screen.cpp>
   -<src/lcd/menu/menu_tramming.cpp>
   -<src/lcd/menu/menu_ubl.cpp>
-  -<src/lcd/extui/anycubic_chiron>
-  -<src/lcd/extui/anycubic_i3mega>
-  -<src/lcd/extui/dgus> -<src/lcd/extui/dgus/fysetc> -<src/lcd/extui/dgus/hiprecy> -<src/lcd/extui/dgus/mks> -<src/lcd/extui/dgus/origin>
-  -<src/lcd/extui/example>
-  -<src/lcd/extui/ftdi_eve_touch_ui>
-  -<src/lcd/extui/malyan>
-  -<src/lcd/extui/mks_ui>
-  -<src/lcd/extui/nextion>
+  -<src/lcd/extui/lib/mks_ui>
+  -<src/lcd/extui/lib/dgus> -<src/lcd/extui/dgus_lcd.cpp>
+  -<src/lcd/extui/lib/dgus/fysetc> -<src/lcd/extui/lib/dgus/hiprecy> -<src/lcd/extui/lib/dgus/mks> -<src/lcd/extui/lib/dgus/origin>
+  -<src/lcd/extui/example.cpp>
+  -<src/lcd/extui/malyan_lcd.cpp>
+  -<src/lcd/extui/lib/ftdi_eve_touch_ui>
+  -<src/lcd/extui/anycubic_chiron_lcd.cpp> -<src/lcd/extui/lib/anycubic_chiron>
+  -<src/lcd/extui/anycubic_i3mega_lcd.cpp> -<src/lcd/extui/lib/anycubic_i3mega>
+  -<src/lcd/extui/nextion_lcd.cpp> -<src/lcd/extui/lib/nextion>
   -<src/lcd/lcdprint.cpp>
   -<src/lcd/touch/touch_buttons.cpp>
   -<src/sd/usb_flashdrive/lib-uhs2> -<src/sd/usb_flashdrive/lib-uhs3>
@@ -199,14 +202,10 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
   -<src/gcode/geometry/M206_M428.cpp>
   -<src/gcode/host/M16.cpp>
   -<src/gcode/host/M113.cpp>
-  -<src/gcode/host/M154.cpp>
   -<src/gcode/host/M360.cpp>
   -<src/gcode/host/M876.cpp>
   -<src/gcode/lcd/M0_M1.cpp>
-  -<src/gcode/lcd/M117.cpp>
   -<src/gcode/lcd/M250.cpp>
-  -<src/gcode/lcd/M300.cpp>
-  -<src/gcode/lcd/M414.cpp>
   -<src/gcode/lcd/M73.cpp>
   -<src/gcode/lcd/M995.cpp>
   -<src/gcode/motion/G2_G3.cpp>
@@ -226,7 +225,6 @@ default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
   -<src/gcode/temp/M104_M109.cpp>
   -<src/gcode/temp/M155.cpp>
   -<src/gcode/units/G20_G21.cpp>
-  -<src/gcode/units/M82_M83.cpp>
   -<src/gcode/units/M149.cpp>
   -<src/libs/BL24CXX.cpp> -<src/libs/W25Qxx.cpp>
   -<src/libs/L64XX> -<src/module/stepper/L64xx.cpp> -<src/HAL/shared/HAL_spi_L6470.cpp>
thisiskeithb commented 3 years ago

Closing since this isn't a Marlin bug.

zonalimitatore commented 3 years ago

Now it's working.Thank u guys

github-actions[bot] commented 3 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.