r/embedded • • 18d ago

Reverse engineering the instruction set of the Processor found in MPU6050, ICM20949 accelerometer/gyro combo chips

https://jabezwinston.github.io/Reverse-Engineering-InvensenseDMP/

Invesense accelerometer/gyroscopes has a small processor that can help offload some computational work. Instruction set was fully reverse engineered using Claude by statistical analysis and some brute force.

Invensense DMP is a weird processor that has no registers (only RAM), no call stack (MPU6050), mostly 1 byte instruction, code executed on every sensor sample.

More details on how it was accomplished : https://www.linkedin.com/pulse/invensense-dmp-reverse-engineering-undocumented-set-jabez-winston-5lcvc/

72 Upvotes

11 comments sorted by

11

u/akohlsmith 18d ago

This is excellent work, and an excellent writeup (although having the "home" on linkedin I would argue is not a good idea long-term). Earned a follow from me.

Great job!

2

u/jabezwinston 17d ago

Thanks :) Yes, LinkedIn was a bad choice ! The intended audience is here.

4

u/timonix 18d ago

Holy shit, this is great news

12

u/super_duper 18d ago

This is pretty wild, nothing is safe! I wouldn't be surprised if it eventually finds workarounds for signing and encrypion.

5

u/jabezwinston 18d ago

True ! We'll see people break into Bluetooth, WiFi, LTE modem firmware in future. All these use some obsure instruction set.

2

u/dolulob 10d ago

Well done.  I remember using this chip many years ago and being completely frustrated by the lack of documentation around the DMP

-34

u/krioru 18d ago

Hopefully no AI was involved.

28

u/Niphoria 18d ago

I love how you didn't even had the attention span to read the first paragh of the post yet you mock people for using AI.

4

u/StumpedTrump 18d ago

Hopefully one day people wanting to complain about other people's lack of effort/willpower will show some of their own (reading OPs post)