BTT-TFT35-E3-V3.0 icon indicating copy to clipboard operation
BTT-TFT35-E3-V3.0 copied to clipboard

can't use SD Card on LCD from marlin mode, but can use it from touchscreen mode

Open robrogers opened this issue 5 years ago • 58 comments

can't use SD Card on LCD from marlin mode, but can use it from touchscreen mode

robrogers avatar Jan 27 '20 00:01 robrogers

This seems like expected behavior. The Marlin mode is really just treating the TFT35 as a dumb replacement for the stock E3 screen so it doesn't have any access to extended features offered by the TFT. When in touch screen mode the TFT is really just a second device hooked up to the printer over serial, think just like Octoprint or Pronterface. So the touch menus are interacting with the TFT which in turn is driving the printer board over serial while the Marlin menus are interacting directly with the printer board.

hfog avatar Jan 30 '20 19:01 hfog

Make sure you set SDCARD_CONNECTION to LCD:

https://github.com/MarlinFirmware/Marlin/blob/bd4e38860b0ceacd543df8d6cc03a252028efd56/Marlin/Configuration_adv.h#L1200-L1209

/**
   * Set this option to one of the following (or the board's defaults apply):
   *
   *           LCD - Use the SD drive in the external LCD controller.
   *       ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
   *  CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
   *
   * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
   */
#define SDCARD_CONNECTION LCD

thisiskeithb avatar Apr 05 '20 13:04 thisiskeithb

I have the same issue just in reverse. in marlin mode i can go to sd card but in touch mode i get a unknwon command xyucal1 gco

with any sdcard added

Mowhok avatar May 27 '20 00:05 Mowhok

Hi Mowhok.

Could you please start a ticket using BTT TFT Touchscreen. Thank you

@robrogers. What is the status of this issue. Could you solve it in the meantime?

oldman4U avatar Jun 08 '20 15:06 oldman4U

@bigtreetech Could you please close this unused ticket

This could help new users find tickets which already cover their topic.

Thank you

oldman4U avatar Jun 21 '20 20:06 oldman4U

I have same troubles. I cant see SD in marlin mode and see it in BTT mode when i choose LSD in #define SDCARD_CONNECTION But if i choose ONBOARD i see onboard SD in marlin mode and cant see it in BTT

fineobjetcs avatar Sep 07 '20 22:09 fineobjetcs

In Marlin you can not see anything TFT related. In touch mode you can see the TFT and you can define if you want to see the sd card from the board or not in config.ini. For this the board sd card must be enabled in Marlin board firmware.

oldman4U avatar Sep 08 '20 05:09 oldman4U

@Portzal

SD card of mainboard or TFT?

oldman4U avatar Sep 19 '20 06:09 oldman4U

Marlin can only see the sd card from the mainboard and not the sd card and the U disk from TFT. This is independent of the screen size as long as it is a TFT from BTT.

oldman4U avatar Sep 19 '20 09:09 oldman4U

But this has nothing to do with this ticket.

To be able to print from mainboard SD card using Marlin simulation the SD card functionality has to be enabled in the firmware of the mainboard (default OFF) and the TFT (default auto-detect - so off in case it is off in Marlin fw)

Hope this helps

image

image

oldman4U avatar Sep 19 '20 11:09 oldman4U

Not sure we can leave the mainboard completely out of the game.

There is a setting in configuration_adv.h, which allows you to define which SD Card Marlin can see: _/**

  • Set this option to one of the following (or the board's defaults apply):
  •       LCD - Use the SD drive in the external LCD controller.
    
  •   ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
    
  • CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
  • :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ] */ #define SDCARD_CONNECTION LCD_

On my machine I use a SKR E3 DIP which is connected with a single EXP connector, and on this machine defining #define SDCARD_CONNECTION LCD does not make any difference.

I could imagine, that using a mainboard with 2 EXP connectors could eventually work, but this is completely guesswork from my side.

So far I was never able to see the TFTs U Disk or SD card from the Marlin emulator, but only when using the Touchscreen mode. But I got a SKR v1.4 last week which I bought for testing. Maybe I can find the time to test it.

So when you use the SD Card of the TFT, does this look the same in Marlin like when you use the on board SD or different?

oldman4U avatar Sep 19 '20 16:09 oldman4U

It is a miracle then...

oldman4U avatar Sep 19 '20 22:09 oldman4U

@radek8

Sorry to bother you but you know the hard and software much better than me.

What is needed to be able to print from the TFTs SD card, using MARLIN emulation mode?

Does this work on displays using just one EXP connection to the mainboard or does this only work with two?

Whats has to be activated/selected software wise?

Does this work on the new TFT70?

You help is appreciated.

THANK YOU

oldman4U avatar Sep 20 '20 07:09 oldman4U

Corrected my question to radek8.

Not sure the TFT70 will support older firmware than it has been released with. 😬

oldman4U avatar Sep 20 '20 08:09 oldman4U

oldman4U to see SD card on TFT you have to meet 2 conditions.

  1. You must be connected via EXP1 and EXP2 (+ correctly declared display type and pins of the EXP2 connector in Marlin). You write that you use EXP3, so you won't see SD on TFT.
  2. You must be configured in Marlin #define SDCARD_CONNECTION LCD

As for the TFT70, I dont have it. He doesn't know if there are any changes on the TFT70 compared to the TFT35.

radek8 avatar Sep 20 '20 08:09 radek8

I would not record older FW due to SD support. A better solution would be to lead the pins from the EXP2 connector (on the Marlin board) to an external SD card slot.

image

radek8 avatar Sep 20 '20 08:09 radek8

for example, this https://www.aliexpress.com/item/32813538365.html?spm=a2g0o.productlist.0.0.6f83443aItqWCY&algo_pvid=2d2c5e73-59fd-4d67-99c7-c8cea8132f53&algo_expid=2d2c5e73-59fd-4d67-99c7-c8cea8132f53-17&btsid=0b0a0ae216005941330491088e3213&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_ ,

https://www.aliexpress.com/item/32523546123.html?spm=a2g0o.detail.1000014.7.155625c6zYzQ8l&gps-id=pcDetailBottomMoreOtherSeller&scm=1007.14976.190542.0&scm_id=1007.14976.190542.0&scm-url=1007.14976.190542.0&pvid=f4a31b81-d134-4ad0-85f6-b9b7507523be&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.14976.190542.0,pvid:f4a31b81-d134-4ad0-85f6-b9b7507523be,tpp_buckets:668%230%23131923%2333_668%23808%234094%23149_668%23888%233325%235_4976%230%23190542%233_4976%232711%237538%23409_4976%233104%239652%231_4976%233141%239887%237_668%232846%238110%23382_668%232717%237559%2366_668%231000022185%231000066059%230_668%233422%2315392%23781_4452%230%23184418%230_4452%233474%2315675%23367_4452%233098%239599%23889_4452%233564%2316062%23560

radek8 avatar Sep 20 '20 09:09 radek8

Hi guys !

I find time for some testing. I removed my BTT 35 TFT from one printer and installed it on another one with the same SKR1.4 and working display. I make booth connection - rs232-tft and exp1 exp2

But i have not happened LCD SD in Marlin mode still not worked

I tried onboard SD and it worked fine. I think it's BTT mistake because i try to change all settings in Marlin and it doesn't matter

My mistake - that i bought this screen 👎because i can't use SD and U disk in base (Marlin) mode, also i don't understand - for why Marlin mode on this screen*,* without SD and U disk. Only for fan ?

fineobjetcs avatar Sep 20 '20 11:09 fineobjetcs

SKR 1.4 has its own card slot and the TFT display also has its own card slot and as a bonus it has USB. Isn't that enough for you? Need to print from two cards at the same time?

You will never see USB from the TFT display in Merlin, it is not possible

radek8 avatar Sep 20 '20 11:09 radek8

Its enough for me while it will be work. But now not. I want to print from one of two LCD slot SD or USB in MARLIN Mode. Nobody cant say me how

fineobjetcs avatar Sep 20 '20 14:09 fineobjetcs

OK, I also found some time for testing and it works using the SKR v1.4 and the TFT35 E3 v3. Using this hardware I can print from all 3 options using Touchscreenmode and using Marlin I can choose to print from mainboard SD card OR TFT SD card slot depending on the settings I defined.

@Portzal: Why have you deleted your comments? I wanted to thank you, because you have been right and I had the chance to learn something new - very cool! Thank you

@fineobjetcs Which version of the firmware are you using on your TFT? Can you send me the config.ini of it to check. Thank you

oldman4U avatar Sep 20 '20 17:09 oldman4U

@oldman4U

I try last firmware for screen from BTT github/ and Marlin 2.0.5.3 Its last config but i try many changes for test

fineobjetcs avatar Sep 20 '20 17:09 fineobjetcs

Marlin is currently 2.0.6.1 and seems to be OK.

TFT is called "master" and is currently 4 days old. There seems to be a problem with the precompiled versions but you will compile your own firmware anyway I guess;-)

oldman4U avatar Sep 20 '20 17:09 oldman4U

So once again. Marli only supports a single SD card!

when setting Marlin to #define SDCARD_CONNECTION ONBOARD There will be an SD card on board with Marlin available in Marlin. An SD card connected via EXP2 on the display (even by touch TFT) in Marlin will not be available Both cards + USB disk will be available in touch mode.

When setting Marlin to #define SDCARD_CONNECTION LCD The SD card on the Marlin board will be unavailable for both Marlin and touch mode. The SD card on the display connected via EXP2 will be available in Marlin and in touch mode. USB drive is only available in touch mode.

When connecting the display only via EXP3 the SD card in the display will not be available in Marlin with any settings.

Is my English clear enough?

radek8 avatar Sep 20 '20 18:09 radek8

To me everything is clear and I checked on the SKR v1.4 which I bought 2 weeks ago. The E3 DIP and Pro which i use work differently. Thank you

oldman4U avatar Sep 20 '20 19:09 oldman4U

SKR E3 DIP has port EXP3, so you can't get to the SD card of the display from Marlin.

radek8 avatar Sep 20 '20 19:09 radek8

Of course, the settings of the display driver depend on this

Enable the driver for cables EXP1 and EXP2. #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER with it, the SD card pins are activated

You enable the driver for the EXP3 cable. #define CR10_STOCKDISPLAY

radek8 avatar Sep 20 '20 20:09 radek8

Again. Thank you for your help. I really appreciate.

oldman4U avatar Sep 20 '20 20:09 oldman4U

SKR E3 DIP has port EXP3, so you can't get to the SD card of the display from Marlin.

Exactly. And the SKR Pro v1.1 and SD card support is a special chapter....🤪

oldman4U avatar Sep 20 '20 21:09 oldman4U

Of course, the settings of the display driver depend on this

Enable the driver for cables EXP1 and EXP2.

#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

with it, the SD card pins are activated

You enable the driver for the EXP3 cable.

#define CR10_STOCKDISPLAY

Traffic light added this information to his READ ME BEFORE STARTING A TICKET because i asked him to do do. Maybe he can also add the information about the Sd support depending on the availability of EXP2.

oldman4U avatar Sep 20 '20 21:09 oldman4U