Welcome! Log In Create A New Profile

Advanced

btt skr 2 and tronxy xa5s config help

Posted by timls3674 
btt skr 2 and tronxy xa5s config help
May 12, 2022 08:30AM
hello i am attempting to set up marlin on a BTT skr 2 for my tronxy x5sa printer and i am stuck on the lcd part of it, i was wondering if anyone could review my config files to see if that is set correctly i am new to programming with marlin and usure under graphical tfts i see tronxy x5sa listed but when i uncomment it several problems begin and i cannot compile it successfully i am wanting to use the stock lcd screen.
Attachments:
open | download - Configuration_adv.h (167.4 KB)
open | download - Configuration.h (108.7 KB)
Re: btt skr 2 and tronxy xa5s config help
May 12, 2022 08:46AM
funnily enough the lcd is TFT_TRONXY_X5SA
with TFT_COLOR_UI
and TOUCH_SCREEN

From the Marlin provided examples for your machine
[github.com]

Edited 1 time(s). Last edit at 05/12/2022 08:48AM by Dust.
Re: btt skr 2 and tronxy xa5s config help
May 12, 2022 09:21AM
ok thanks that helps i just need to figure out all the compiling errors
Re: btt skr 2 and tronxy xa5s config help
May 12, 2022 09:43AM
these are not what i am sure about....


Compiling .pio\build\BIGTREE_SKR_2_F429\src\src\HAL\STM32\tft\tft_fsmc.cpp.o
Compiling .pio\build\BIGTREE_SKR_2_F429\src\src\HAL\STM32\tft\tft_ltdc.cpp.o
Compiling .pio\build\BIGTREE_SKR_2_F429\src\src\HAL\STM32\tft\tft_spi.cpp.o
In file included from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:31:
Marlin\src\HAL\STM32\tft\tft_fsmc.h:55:12: error: 'SRAM_HandleTypeDef' does not name a type; did you mean 'SAI_HandleTypeDef'?
55 | static SRAM_HandleTypeDef SRAMx;
| ^~~~~~~~~~~~~~~~~~
| SAI_HandleTypeDef
In file included from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:31:
Marlin\src\HAL\STM32\tft\tft_fsmc.h:100:12: error: 'FSMC_NORSRAM_DEVICE' was not declared in this scope; did you mean 'FSMC_NORSRAM_TYPEDEF'?
100 | {PD_14, FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D00
| ^~~~~~~~~~~~~~~~~~~
| FSMC_NORSRAM_TYPEDEF
In file included from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino\stm32/PinNames.h:4,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino\stm32/pinmap.h:22,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino\stm32/PeripheralPins.h:34,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino\stm32/analog.h:44,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino/board.h:8,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino/wiring.h:41,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/HAL.h:28,
from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\tft\../../../inc/MarlinConfig.h:31,
from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:27:
Marlin\src\HAL\STM32\tft\tft_fsmc.h:90:69: error: 'GPIO_AF12_FSMC' was not declared in this scope; did you mean 'GPIO_AF12_FMC'?
90 | #define FSMC_PIN_DATA STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF12_FSMC)
| ^~~~~~~~~~~~~~
C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino\stm32/PinNamesTypes.h:93:29: note: in definition of macro 'STM_PIN_DEFINE'
93 | ((AFNUM & STM_PIN_AFNUM_MASK) << STM_PIN_AFNUM_SHIFT))
| ^~~~~
Marlin\src\HAL\STM32\tft\tft_fsmc.h:90:27: note: in expansion of macro 'STM_PIN_DATA'
90 | #define FSMC_PIN_DATA STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF12_FSMC)
| ^~~~~~~~~~~~
Marlin\src\HAL\STM32\tft\tft_fsmc.h:100:33: note: in expansion of macro 'FSMC_PIN_DATA'
100 | {PD_14, FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D00
| ^~~~~~~~~~~~~
In file included from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:31:
Marlin\src\HAL\STM32\tft\tft_fsmc.h:101:12: error: 'FSMC_NORSRAM_DEVICE' was not declared in this scope; did you mean 'FSMC_NORSRAM_TYPEDEF'?
101 | {PD_15, FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D01
| ^~~~~~~~~~~~~~~~~~~
| FSMC_NORSRAM_TYPEDEF
In file included from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino\stm32/PinNames.h:4,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino\stm32/pinmap.h:22,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino\stm32/PeripheralPins.h:34,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino\stm32/analog.h:44,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino/board.h:8,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino/wiring.h:41,
from C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/HAL.h:28,
from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\tft\../../../inc/MarlinConfig.h:31,
from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:27:
Marlin\src\HAL\STM32\tft\tft_fsmc.h:90:69: error: 'GPIO_AF12_FSMC' was not declared in this scope; did you mean 'GPIO_AF12_FMC'?
90 | #define FSMC_PIN_DATA STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF12_FSMC)
| ^~~~~~~~~~~~~~
C:\Users\tim36\.platformio\packages\framework-arduinoststm32@src-37335c727965154be67d1d5ed653b9c6\cores\arduino\stm32/PinNamesTypes.h:93:29: note: in definition of macro 'STM_PIN_DEFINE'
93 | ((AFNUM & STM_PIN_AFNUM_MASK) << STM_PIN_AFNUM_SHIFT))
| ^~~~~
Marlin\src\HAL\STM32\tft\tft_fsmc.h:90:27: note: in expansion of macro 'STM_PIN_DATA'
90 | #define FSMC_PIN_DATA STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF12_FSMC)
| ^~~~~~~~~~~~
Marlin\src\HAL\STM32\tft\tft_fsmc.h:101:33: note: in expansion of macro 'FSMC_PIN_DATA'
101 | {PD_15, FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D01
*** [.pio\build\BIGTREE_SKR_2_F429\src\src\HAL\STM32\tft\tft_fsmc.cpp.o] Error 1
=========================================== [FAILED] Took 81.95 seconds ===========================================

Environment Status Duration
------------------ -------- ------------
BIGTREE_SKR_2_F429 FAILED 00:01:21.947
Re: btt skr 2 and tronxy xa5s config help
May 12, 2022 06:50PM
The TFT_TRONXY_X5SA uses what is known as a FSMC interface

This is a flat flex cable.

There is no way to physically connect this to a skr 2
Sorry, only registered users may post in this forum.

Click here to login