This is a simplified version of the Nexmon Framework by Daniel Wegemer and Matthias Schulz (https://github.com/seemoo-lab/nexmon)
I presented in 2018 at DEFCON how to use the Nexmon framework to modify Xiaomi firmwares, which are based on Marvel or Mediatek Cortex-M chips. You find the presentation here: http://dontvacuum.me/talks/DEFCON26-IoT-Village/DEFCON26-IoT-Village_How_to_Modify_Cortex_M_Firmware-Xiaomi.html
This release does not contain the buildtools, please download them from the nexmon repository.
- import folder buildtools from (https://github.com/seemoo-lab/nexmon/tree/master/buildtools)
patches/common/wrapper.cto add more firmware functions (see blinkenlights)
patches/mw300/1/demo/src/patch.cto add new code to your firmware
firmwares/mw300/1/definitions.mkto define where new patches have to go