Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Marlin Simulator SD Card does not work #27636

Closed
1 task done
alexgrach opened this issue Jan 11, 2025 · 6 comments · May be fixed by #27668
Closed
1 task done

[BUG] Marlin Simulator SD Card does not work #27636

alexgrach opened this issue Jan 11, 2025 · 6 comments · May be fixed by #27668
Labels
Bug: Confirmed ! T: Development Makefiles, PlatformIO, Python scripts, etc.

Comments

@alexgrach
Copy link
Contributor

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

Yes, and the problem still exists.

Bug Description

SD card emulation does not work. I've tried to use existing fs.img and generating empty in sim. No success.
изображение

Bug Timeline

No response

Expected behavior

SD icon become active.

Actual behavior

SD icon is inactive.

Steps to Reproduce

No response

Version of Marlin Firmware

bugfix-2.1.x

Printer model

No response

Electronics

No response

LCD/Controller

No response

Other add-ons

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Configuration.zip

@thisiskeithb thisiskeithb changed the title [BUG] Marlin Simulator SD Card does not work. [BUG] Marlin Simulator SD Card does not work Jan 11, 2025
@thisiskeithb thisiskeithb added Bug: Confirmed ! T: Development Makefiles, PlatformIO, Python scripts, etc. and removed Bug: Potential ? labels Jan 28, 2025
@p3p
Copy link
Member

p3p commented Feb 3, 2025

This is caused by a conflict in the default simulation pins file (Marlin/src/pins/native/pins_RAMPS_NATIVE.h),

#define EXP2_08_PIN                           41  // KILL
...
#if ANY(TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI)
...
  #define SD_DETECT_PIN                       41
...
#ifndef KILL_PIN
  #define KILL_PIN                   EXP2_08_PIN
#endif

@ellensp
Copy link
Contributor

ellensp commented Feb 4, 2025

If you set #define KILL_PIN 11 there is no conflict, and it still fails to work.

Under linux something very odd is going on.
If you click on SD Card present then it stops taking gcodes

@thisiskeithb
Copy link
Member

On the topic of SD card issues in the Sim...

I found that I cannot copy TFT_LVGL_UI assets to fs.img because it's too small. Assets are ~5MB and the image is 100MB, so that doesn't add up:

@p3p
Copy link
Member

p3p commented Feb 4, 2025

@ellensp I can't reproduce that, once I set the KILL_PIN to resolve the conflict the sd card woks as expected on linux, when there is still a conflict clicking SD Card Present will cause Marlin to stop responding as it triggers kill.

@thisiskeithb at least for me my OS (Linux Mint) mounts the image as read only unless I manually mount it writable from the command line, which can make some utilities report not enough space rather than correctly reporting read only.

@ellensp
Copy link
Contributor

ellensp commented Feb 4, 2025

Seems to have been a corrupted sdcard image

@ellensp
Copy link
Contributor

ellensp commented Feb 4, 2025

Pr created, closing

@ellensp ellensp closed this as completed Feb 4, 2025
@thisiskeithb thisiskeithb linked a pull request Feb 5, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Confirmed ! T: Development Makefiles, PlatformIO, Python scripts, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants