MarlinFirmware / Configurations

Configurations for Marlin Firmware
https://marlinfw.org
GNU General Public License v3.0
1.98k stars 3.33k forks source link

Update documentation for TINA2 models #1008

Closed czlr closed 5 months ago

czlr commented 5 months ago

Description

Documentation update only, no code changes. Updates the documentation for TINA2 to better explain the differences in the models. The firmware between them needs to be configured differently, but unfortunately results/discussions online often lump them all together. E.g., if searching "tina2 firmware upgrade". Which also caused me a lot of headaches before realizing.

Benefits

People using one of the TINA2 printers (who are often beginners) can now realize there are different models, and configure things accordingly.

I'm also working on a V7 2.1.x config for my own printer. If I figure it out, I can contribute it with another MR.

Related Issues

N/A

thisiskeithb commented 5 months ago

Related to this, I built all of our hosted configurations last night and found the Tina2 configs do not build:

Weedo/Tina2/V2/

PREHEAT_2_TEMP_HOTEND (240) must be less than HEATER_0_MAXTEMP (240) - 15:

```prolog Getting configuration files from ./.pio/build-import-2.1.x/config/examples/Weedo/Tina2/V2/ Building the firmware now... /.platformio/penv/bin/pio Auto Build... Building environment mega2560 for board WEEDO_62A (1330)... In file included from Marlin/src/module/../inc/MarlinConfigPre.h:37:0, from Marlin/src/module/../inc/MarlinConfig.h:28, from Marlin/src/module/../MarlinCore.h:24, from Marlin/src/module/temperature.cpp:30: Marlin/src/module/temperature.cpp:310:38: error: static assertion failed: PREHEAT_2_TEMP_HOTEND (240) must be less than HEATER_0_MAXTEMP (240) - 15. #define CHECK_PREHEAT__(N,P,T,M) static_assert(T <= (M) - (HOTEND_OVERSHOOT), "PREHEAT_" STRINGIFY(P) "_TEMP_HOTEND (" STRINGIFY(T) ") must be less than HEATER_" STRINGIFY(N) "_MAXTEMP (" STRINGIFY(M) ") - " STRINGIFY(HOTEND_OVERSHOOT) "."); ^ [snip] *** [.pio/build/mega2560/src/src/module/temperature.cpp.o] Error 1 ================================================ [FAILED] Took 15.07 seconds ================================================ Environment Status Duration ------------- -------- ------------ mega2560 FAILED 00:00:15.072 =========================================== 1 failed, 0 succeeded in 00:00:15.072 =========================================== Failed ```

Weedo/Tina2/V3/

PREHEAT_2_TEMP_HOTEND (240) must be less than HEATER_0_MAXTEMP (240) - 15:

```prolog Getting configuration files from ./.pio/build-import-2.1.x/config/examples/Weedo/Tina2/V3/ Building the firmware now... /.platformio/penv/bin/pio Auto Build... Building environment mega2560 for board WEEDO_62A (1330)... In file included from Marlin/src/module/../inc/MarlinConfigPre.h:37:0, from Marlin/src/module/../inc/MarlinConfig.h:28, from Marlin/src/module/../MarlinCore.h:24, from Marlin/src/module/temperature.cpp:30: Marlin/src/module/temperature.cpp:310:38: error: static assertion failed: PREHEAT_2_TEMP_HOTEND (240) must be less than HEATER_0_MAXTEMP (240) - 15. #define CHECK_PREHEAT__(N,P,T,M) static_assert(T <= (M) - (HOTEND_OVERSHOOT), "PREHEAT_" STRINGIFY(P) "_TEMP_HOTEND (" STRINGIFY(T) ") must be less than HEATER_" STRINGIFY(N) "_MAXTEMP (" STRINGIFY(M) ") - " STRINGIFY(HOTEND_OVERSHOOT) "."); ^ [snip] *** [.pio/build/mega2560/src/src/module/temperature.cpp.o] Error 1 ================================================ [FAILED] Took 15.12 seconds ================================================ Environment Status Duration ------------- -------- ------------ mega2560 FAILED 00:00:15.122 =========================================== 1 failed, 0 succeeded in 00:00:15.122 =========================================== Failed ```

I'll probably end up dropping the PREHEAT_2_* / ABS option for these configs since the max hotend temp is 225.

jarno83 commented 4 months ago

Description

Documentation update only, no code changes. Updates the documentation for TINA2 to better explain the differences in the models. The firmware between them needs to be configured differently, but unfortunately results/discussions online often lump them all together. E.g., if searching "tina2 firmware upgrade". Which also caused me a lot of headaches before realizing.

Benefits

People using one of the TINA2 printers (who are often beginners) can now realize there are different models, and configure things accordingly.

I'm also working on a V7 2.1.x config for my own printer. If I figure it out, I can contribute it with another MR.

Related Issues

N/A

Hi, have you hade any progres with V7 configs? Thanks.

czlr commented 4 months ago

Hi, have you hade any progres with V7 configs? Thanks.

Sorry for the late reply. Sort of... yes and no. I've stopped looking into it, but these are my notes:

The main issue is that the TINA2 firmware requires other substantial code changes to work. If I'm understanding the philosophy here, having a clean config would be meaningless in the spirit of things if it can't be simply dropped into marlin to get a working build. Studying their reference Marlin 2.0.x firmware, they've added a bunch of custom files, along with small inline edits to the marlin sources scattered throughout. But most of it relates to their custom LCD display: https://github.com/weedo3d/Tina2Upgradefirmware/tree/main/Marlin/src/wtlib.

Code/feature stuff to call out in their reference 2.0.x firmware (https://github.com/weedo3d/Tina2Upgradefirmware):