Our motor control group at Eaton is responsible for designing, developing, and testing high-quality control software for variable frequency drives and other motors (Figure 1). For decades, much of this software was coded by hand. Although our legacy codebase has proven its reliability across multiple applications in our electrical, aerospace, and mobility sectors, we faced significant challenges as we looked to deploy it on new hardware platforms and extend its use across different operating environments, including AUTOSAR®, bare-metal, and real-time operating system (RTOS) implementations. The original developers were no longer with the company, and design documentation was sparse. Further, the code’s complex architecture made substantive modifications both time-consuming and risky.