Those are the ESP32's (plain 32, not 32-C3 or 32-S3), but what exactly did you develop for them? Mining firmware? That could indeed be useful; especially the Stratum v2 part, since that should be completely independent from the mining hardware (ASIC chips) used.
C code for ESP32 should also compile for ESP32-S3.
The hard part is figuring out an optimized and efficient communication between ESP32-S3-WROOM-1 chip and the BM 1397 chips and coding it in a stripped down embedded format so that it fits into tiny 16 MB Flash with additional 8 MB PSRAM on the ESP32-S3
Either C or Std Rust or NoStd Rust, we will still come very close to the memory threshold being completely utilized. i guess the goal is to strip down everything and have only bare-bone code but with standard ESP-IDF Version 5.0 / 5.1 to handle a lot of the headaches from std code
Good candidates is to use Cgminer (Kanoi version (C/C++)) , Braiins OS code base (Rust) as a Reference plus stratum V2 (Rust) code base and strip everything to the bone. Rust has few advantages when running on Microcontrollers compared to pure C code.