Welcome! Log In Create A New Profile

Advanced

Marlin Simulator Help

Posted by rq3 
rq3
Marlin Simulator Help
August 09, 2025 11:38AM
I have successfully compiled an executable with the Marlin simulator, but:

1) It will only run one time. If I exit, and then run the executable again, it shuts down, UNLESS I delete the imgui.ini and eeprom.dat files auto-created during the first run.

2) I cannot compile an executable with the TFT_COLOR_UI display.

I am using the latest bugfix, and the unchanged config files from the latest examples/simulator directory.

Any and all thoughts welcome!
Re: Marlin Simulator Help
August 09, 2025 12:11PM
2) not psychic. Error messages? Operating system? architecture?

Are you using example simulator configs? [github.com]

Did you install all requirements listed in native.ini for your OS?

Edited 1 time(s). Last edit at 08/09/2025 12:12PM by Dust.
Re: Marlin Simulator Help
August 09, 2025 12:29PM
Ok I see a static assert breaking things... "static assertion failed: Unsupported Character LCD Height" Is this your error?

click on the error to open up .pio/libdeps/{your build env}/MarlinSimUI/src/MarlinSimulator/hardware/HD44780Device.h:

find
static_assert(LCD_WIDTH == 16 || LCD_WIDTH == 20, "Unsupported Character LCD Width");
static_assert(LCD_HEIGHT == 2 || LCD_HEIGHT == 4, "Unsupported Character LCD Height");


change it to

#ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
  static_assert(LCD_WIDTH == 16 || LCD_WIDTH == 20, "Unsupported Character LCD Width");
  static_assert(LCD_HEIGHT == 2 || LCD_HEIGHT == 4, "Unsupported Character LCD Height");
#endif


Will have to get this fixed in the sim.. [github.com]

Edited 3 time(s). Last edit at 08/09/2025 01:08PM by Dust.
rq3
Re: Marlin Simulator Help
August 09, 2025 01:03PM
@Dust, that worked a charm, but issue #1 still applies. I can only run the sim once, unless I delete the auto-generated files it creates on the first run. I've tried the obvious, like inializing EEPROM, etc.

Edited 2 time(s). Last edit at 08/09/2025 01:12PM by Dust.
Re: Marlin Simulator Help
August 09, 2025 01:12PM
I Can't replicate that... what OS and architecture?
rq3
Re: Marlin Simulator Help
August 09, 2025 01:25PM
Windows 10, 64 bit. When I run the sim, it creates eeprom.dat, imgui.ini, and spi_flash.bin files in the pio/build/simulator_windows folder where the newly compiled MarlinSimulator.exe file resides.
I have to delete the imgui.ini file to run the sim a second time, or it just briefly opens a blank screen, and then closes.
Re: Marlin Simulator Help
August 09, 2025 01:37PM
could you attach a imgui.ini for examination?

And what is your screen resolution? (wondering if its a 4k display or something high res causing issues)

Edited 1 time(s). Last edit at 08/09/2025 01:44PM by Dust.
rq3
Re: Marlin Simulator Help
August 09, 2025 01:40PM
And, as always, many thanks for your help!
Attachments:
open | download - imgui.ini (2.8 KB)
Re: Marlin Simulator Help
August 09, 2025 01:51PM
Its identical to my imgui.ini under linux..
rq3
Re: Marlin Simulator Help
August 09, 2025 02:02PM
Quote
Dust
Its identical to my imgui.ini under linux..

I guess I can live with deleting it before I start the sim, but seems flakey to me.

Thanks, Dust!
Re: Marlin Simulator Help
August 19, 2025 03:29AM
I just watched a video of the Marlin Simulator.

I wasn't aware of that program and just learned of it from this post.

Pretty cool.

Edited 1 time(s). Last edit at 08/19/2025 03:32AM by brianmh13.
Re: Marlin Simulator Help
August 19, 2025 09:13AM
I too just learned of this simulator, though Will try it in Windows 11 Pro version 10.0.26100 Build 26100.

Just need to read the full article several times to determine what I need to do for Marlin Simulator setup in Windows 11 to execute the program correctly.


Computer Programmer / Electronics Technician
Sorry, only registered users may post in this forum.

Click here to login