r/MPSelectMiniOwners • • Oct 07 '26

AI reverse engineering is pretty cool guys

Fully reverse engineered the interface board drivers from a hard dump of the winbond flash chip version 110.2. Doing an open source reimplemention to pair with Marlin using a non-idiotic communication standard. Hopefully it will breathe a little more life into this old girl. I only have the V2 display right now. I might have a V3 mainboard and display somewhere in storage, but I wasn't able to find them when I looked last.

Oh, and this is flashed OTA from the web interface using the /update tail. Monoprice put basically no protection into the firmware updating subsystem for the display so you can just kinda do it.

WARNING! THIS WILL ONLY WORK ON V2 DISPLAY ASSEMBLIES WHEN RELEASED! Flash at your own risk when available!

If someone sends me a V1 unit and/or V3 unit I would be happy to port it to them as well though. Happy to return them when porting is complete as well.

Obviously this is a work in progress, so there won't be a release immediately, but final work will look a lot better with graphics and such. It'll have baby-stepping and a more modern web interface as well. I'll provide updates as I finish work.

Note: Due to some stalls on development, I decided to release the current source as a reference and will pickup development when I have time. This is available for anyone that wants to contribute to fork and update as desired. I do not claim that everything works as intended right now. Assume that you will need a J-Link debugger to use this project code in its current state.

https://github.com/Gadorach/MPSM-Marlin
https://github.com/Gadorach/MPSM-Display
https://github.com/Gadorach/MPSM-Bootloader

I'm happy to accept any feedback on the codebase from any contributors. I hope to finish this project in the next 2 months myself regardless.

14 Upvotes

14 comments sorted by

3

u/DGMindRealm Oct 08 '26

Interesting project. Please keep us updated. May be worth your while to start a GitHub repository…

1

u/LiftnBooks Oct 08 '26

I have a private repo and plenty of public ones from my projects. I'll share the repo and make it public as soon as I reach initial stability. If I release too early, people will try debug builds and brick their systems, so I'm just waiting it out for a couple days to fix the big initial bugs.

1

u/LiftnBooks Oct 10 '26

I got greedy and wanted to add direct firmware uploading over USB to the bootloader. It did not go as planned, but I now know the SWD pinout for the V2 board lol

https://imgur.com/a/vN0HpGz

1

u/Ticiclewrenchz Oct 08 '26

1

u/LiftnBooks Oct 08 '26

Oh nice! Different direction from my intended outcome, as his just contacts his Moonraker instance over Wi-Fi instead of acting as a direct display, but that's really cool! I'm well past the point of benefiting from that repo though, and our intended final applications are rather different.

1

u/J_C_Nelson Oct 08 '26

Doesn’t the terodactyl source do the same thing? I know I tested Marlin treating it as a standard gfx display with that.

1

u/J_C_Nelson Oct 08 '26

Also you don’t have to use the OtA. Ground the limit switch, hold the button, boot and it does the update off the SD card.

1

u/LiftnBooks Oct 08 '26

Unless I'm missing something, I've never seen source for the MPSM v2 interface board. I did look, but the limit was a guy that got some basic GFX working but not a functional display firmware replacement, and he was working on the V1. V2 has a bunch of shift registers linking the display to reduce IO count. I'm really not sure what you're referring to and a Google search turned up nothing related.

1

u/J_C_Nelson Oct 08 '26

I really thought Kris's firmware was more functional (I added the "drive it like a gfx" code myself), but there may not ever have been a public one. Regardless, good work, I highly suggest adding an OTA bin file for people to flash that way if they can't get to the UI. Also, nothing special needed to dump the firmware, just hold down the button, it puts it into that mode. OH, and the default timings are...optimistic. I know slowing it down brought back a lot of older displays.

1

u/Antique-Form-3159 Oct 08 '26

I still have my v2. But the screen is starting to go out

1

u/NevarroGuildsman Oct 08 '26

I'll see what I've got but I'm pretty sure it's a v2.

1

u/LeatherRub7248 Oct 08 '26

Hey OP,

im new to RE. Is it correct that TLDR is to point ghidra to whatever dump / source / compiled files u have, and let it get to work, ideally with a smart model that doesnt complain abt RE?

0

u/LiftnBooks Oct 11 '26

It's progressing pretty well. Still need to optimize display refresh as menu traversal is still pretty awkward, but it's coming.

1

u/LiftnBooks Oct 13 '26

Currently the firmware status is somewhat paused while I work on fixing my printer as the chip stopped responding to SWD so I'm investigating the mainboard.

The project is a joint replacement for 3 elements. The bootloader has SD updates striped out in favour of USB flashing. The SD FAT driver was too heavy and consumed 4.5kb of the 8kb bootloader. After that, a few bootcode optimizations brought it down to around 2kb. That gave me lots of additional room for Marlin patches and features.

Marlin is updated to latest branch and supports the printer directly with EEPROM backed settings for lots of stuff.

The display let's you do lots of basic tuning, including baby-stepping, steps/mm changes, extruder tuning, modern RRF-protocol network connectivity for orca. I'll share as soon as I finish bootloader work and clean up the current display issues.

It will be on my GitHub at that time.