Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

WebAssembly (WASM) on STM32 – STM32 Tutorial #85

766 views on YouTube

Putting a WebAssembly virtual machine in a STM32.

Check the CurrentMakers channel here: https://www.youtube.com/@CurrentMakers

Buy CurrentMakers Streamline here: https://currentmakers.com/products/streamline/
Buy Colibri modules here: https://currentmakers.com/products/colibri/

The stm32-wasm3 repository on Github: https://github.com/lbthomsen/stm32-wasm3

#STM32 #GettingStarted #Tutorial #WebAssembly #wasm3 #STM32CubeIDE #STM32CubeMX #STM32World #CurrentMakers

00:00 Intro
01:05 What exactly is WebAssembly
02:02 The reason we investigated this – the potential Colibri use case
05:47 Putting an interpreted language in a MCU
07:30 Is WebAssembly possible?
08:35 The first project “first”
10:10 Adding wasm3 to the project
13:19 WebAssembly sandbox – glue/wrapper functions are necessary
15:09 Creating the WebAssembly wasm binary – first the “api”
16:20 The WebAssembly C source
16:38 The Makefile
18:14 Building the wasm file (and header which can be included)
18:49 Adding the wasm binary code to our STM32CubeIDE project
19:44 Necessary user includes
20:30 Starting the wasm3 environment, runtime and modules
22:19 Creating the host function wrapper
24:30 Calling the wasm function
25:35 Running the firmware on the STM32
26:50 Final thoughts and future plans
30:59 Outtro