Sure thing. There aren't very many instruments this can be done for, though. Needs to be open source so that developers can learn the system, and the toolchain needs to be documented. These caveats exclude most major manufacturers' instruments, including DSI's.
But I've written custom firmware for Mutable Instruments Peaks, and I'd probably be willing to write firmware to spec for lots of money.