10 ms·
This is nice. I actually wanted to emulate the hardware of a car's ECU to run it's firmware and reverse engineer it better. The arch was simple, it had no multi
by farmdve 3y ago
This is nice. I actually wanted to emulate the hardware of a car's ECU to run it's firmware and reverse engineer it better. The arch was simple, it had no multiple cores, it had no MMU, it was all running in real mode basically.
Unfortunately it required in my opinion heavy modifications to emulate the timers, internal modules of the main chip, memory(SRAM and NAND), CAN controllers and so forth. Maybe not everything, but most of the chip features were used and required.
Then I had to emulate or at least a static version of all the engine peripherals such as sensors and injectors and so forth.
I had no idea if my emulator(QEMU) had to be cycle accurate or not.
So I gave up.
- ThePowerOfFuet 3y agoThat's gonna be tough to emulate because the ECU is gonna be running a hard-realtime OS such as VxWorks or QNX so things will indeed need to be cycle-accurate.
- farmdve 3y agoI can assure you, it was running no more OS than an Arduino Mega would. It was purely interrupt based.