Live data from Hacker News

An STM32 emulator written in Rust for 3D printers

github.com

11–20 of 23 posts

Re: An STM32 emulator written in Rust for 3D printers

#11
post #3

I suppose emulating STM32s is all we can do at the moment. Impossible to buy one until sometime in 2023. On a more serious note: Great project!

I thought MCUs popular in both industry, college, and among hobbyists would be more readily available by now. What is actually possible to get your hands on now? What about 32-bit ARM Arduinos and ESP32s?

Popular in production = hard to get mostly. Eg you can get STM32G030 and similar at quite normal prices at LCSC (and thus JLCPCB assembly service, highly recommended over hand soldering BTW). OTOH stm32f030 (older and 2x worse in most respects) are way overpriced.

In addition to various esp32s (which have very decent sdk) you can easily get rp2040. You can also get a number of Chinese chips other than esp32 but good luck programming these.

Re: An STM32 emulator written in Rust for 3D printers

#12

Could this be used to, say, reverse-engineer the Chitubox-proprietary file format that a lot of 4K+ MSLA printers use?

I found this sentence (emphasis mine):

> This emulator is done in the context of my work on reverse engineering 3D printers

in the README of the repo, right there on the page being linked to, pretty much at the top of the README.

Given that it is an STM32 emulator, developed specifically for reverse engineering 3D printer firmware, I suppose it can be used for reverse engineering how a specific 3D printers firmware decodes a file format then?

Re: An STM32 emulator written in Rust for 3D printers

#13
post #3

I suppose emulating STM32s is all we can do at the moment. Impossible to buy one until sometime in 2023. On a more serious note: Great project!

I thought MCUs popular in both industry, college, and among hobbyists would be more readily available by now. What is actually possible to get your hands on now? What about 32-bit ARM Arduinos and ESP32s?

> What is actually possible to get your hands on now?

You can get your hands on many different chips right now, including many different STM32 microcontrollers. The more important question is "at what price" though, because some of these chips are more than 10x more expensive than years ago.

Re: An STM32 emulator written in Rust for 3D printers

#15
post #3

I suppose emulating STM32s is all we can do at the moment. Impossible to buy one until sometime in 2023. On a more serious note: Great project!

I thought MCUs popular in both industry, college, and among hobbyists would be more readily available by now. What is actually possible to get your hands on now? What about 32-bit ARM Arduinos and ESP32s?

RP2040

Re: An STM32 emulator written in Rust for 3D printers

#17
post #3

I suppose emulating STM32s is all we can do at the moment. Impossible to buy one until sometime in 2023. On a more serious note: Great project!

I thought MCUs popular in both industry, college, and among hobbyists would be more readily available by now. What is actually possible to get your hands on now? What about 32-bit ARM Arduinos and ESP32s?

> What is actually possible to get your hands on now?

Nobody's going to tell you that. Closely guarded secrets. Sorry.

Re: An STM32 emulator written in Rust for 3D printers

#18
post #11
post #3

Earlier quoted context omitted.

I thought MCUs popular in both industry, college, and among hobbyists would be more readily available by now. What is actually possible to get your hands on now? What about 32-bit ARM Arduinos and ESP32s?

Popular in production = hard to get mostly. Eg you can get STM32G030 and similar at quite normal prices at LCSC (and thus JLCPCB assembly service, highly recommended over hand soldering BTW). OTOH stm32f030 (older and 2x worse in most respects) are way overpriced. In addition to various esp32s (which have very decent sdk) you can easily get rp2040. You can also get a number of Chinese chips other than esp32 but good…

I had success programming Chinese clones of the STM32F103C8T6 aka Blue Pill by just changing the device signature the programmer looks for via a flag in openocd. Fortunately these blue pill clones behave identically (so far, in my experience) to the real thing and are abundant and cheap on eBay so might be a good option for those who still want to work with a STM32 chip.

Re: An STM32 emulator written in Rust for 3D printers

#19
post #6

Earlier quoted context omitted.

How come STM32s are not available? I thought the chip supply issues were mostly related to smaller process nodes while these should be made on relatively older ones.

The short answer is that they are not building more fabs for non-leading edge processes, like those used by STM32. There is an interesting video about this: https://www.youtube.com/watch?v=YJrOuBkYCMQ

There are variants of STM32 that are 90nm. A 90nm foundry was just announced. Not sure if they’re planning on making STM32s, probably not, but there are non-leading edge foundries being run and more are being made.

Here is an announcement from this month

https://www.eetimes.com/skywater-to-build-1-8-billion-fab-in...

Re: An STM32 emulator written in Rust for 3D printers

#20
post #3

I suppose emulating STM32s is all we can do at the moment. Impossible to buy one until sometime in 2023. On a more serious note: Great project!

I thought MCUs popular in both industry, college, and among hobbyists would be more readily available by now. What is actually possible to get your hands on now? What about 32-bit ARM Arduinos and ESP32s?

ESP32s in most (all?) variant are available. So are nRFs. Most ICs that were out of stock 1-2 years ago are avail again.

STM32s (most/all variants?) are unavailable. It's frustrating since these are very nice MCUs for a number of use cases. Ie fast, loads of hardware peripherals, variants and footprints to fit various project requirements.

Post reply on HN