mbed-torch-fusion-os

MbedTorch FusionOS: Seamlessly merges Mbed OS with Torch ML models for the P-Nucleo-WB55 on Arm Cortex M4. Empowering edge computing with efficient ML deployment.

https://github.com/christophkarlheck/mbed-torch-fusion-os

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.4%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

MbedTorch FusionOS: Seamlessly merges Mbed OS with Torch ML models for the P-Nucleo-WB55 on Arm Cortex M4. Empowering edge computing with efficient ML deployment.

Basic Info
  • Host: GitHub
  • Owner: ChristophKarlHeck
  • License: mit
  • Language: C
  • Default Branch: main
  • Size: 116 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 2 years ago · Last pushed 11 months ago
Metadata Files
Readme License Citation

README.md

Mbed Torch Fusion OS

MbedTorch Fusion OS: Seamlessly merges Mbed OS with Torch ML models for the P-Nucleo-WB55RG on Arm Cortex M4. Empowering edge computing with efficient ML deployment.

Tutorial: https://youtu.be/jc_GCxAAO20

1. Build ExecuTorch libraries

git clone https://github.com/ChristophKarlHeck/mbed-torch-fusion-os.git

cd mbed-torch-fusion-os/utils/scripts

./buildetlibs.sh

cd ../../

2. Install pyOCD in mbed-os venv

source mbed-os/venv/bin/activate

python3 -m pip install -U pyocd

pyocd pack --update

pyocd pack --install stm32wb55rg

deactivate

3. Convert softmax.pte file to model_pte.h

cd executorch

source .executorch/bin/activate

export PATH="$(pwd)/third-party/flatbuffers/cmake-out:${PATH}"

"$(pwd)/build/install_flatc.sh"

export PATH="$(pwd)/../gcc-arm-none-eabi-10.3-2021.10/bin:${PATH}"

hash arm-none-eabi-gcc

cd ..

python3 executorch/examples/arm/executorrunner/pteto_header.py --pte executorch/softmax.pte --outdir .

4. Connect with serial port

Open a new terminal. Plug in Nucleo-WB55RG. Install Mbed CLI 2 and use it to find serial port.

sudo apt-get install python3-dev

python3 -m pip install mbed-tools

mbed-tools detect

Remember serial port. Use minicom to see console output.

minicom -D /dev/ttyACM0

ctrl a & x to exit

5. Build and flash using VS Code

https://github.com/mbed-ce/mbed-os/wiki/Project-Setup:-VS-Code

Owner

  • Login: ChristophKarlHeck
  • Kind: user

Citation (CITATION.cff)

@InProceedings {Buss2024,
    title        = {PhytoNode Upgraded: Energy-Efficient Long-Term Environmental Monitoring Using Phytosensing},
    author       = {Buss, Eduard and Aust, Till and Hamburger, Oliver and Heck, Christoph Karl and Hamann, Heiko},
    booktitle    = {Advances in Information and Communication. FICC 2025. Lecture Notes in Networks and Systems},
    editor       = {},
    series       = {},
    volume       = {},
    number       = {},
    year         = {2025},
    pages        = {},
    publisher    = {Springer Nature Switzerland},
    address      = {},
    doi          = {},
    note         = {(in press)}
}

GitHub Events

Total
  • Issues event: 1
  • Watch event: 1
  • Issue comment event: 1
  • Public event: 1
  • Push event: 70
  • Create event: 1
Last Year
  • Issues event: 1
  • Watch event: 1
  • Issue comment event: 1
  • Public event: 1
  • Push event: 70
  • Create event: 1

Dependencies

.github/workflows/doxygen.yml actions
  • actions/checkout v3 composite
  • peaceiris/actions-gh-pages v3 composite