Just adding this here so it is part of my "collection" of hacks. Sourcecode and writeup can be found here:

https://github.com/cpldcpu/BitNetPDK
https://cpldcpu.com/2024/05/02/machine-learning-mnist-inference-on-the-3-cent-microcontroller/