wasm-micro-runtime
wasm-micro-runtime copied to clipboard
Adding support for new hardware platform (MCU)
Hi there,
I started to get my eyes on WAMR for an experimental project that aims to offer a uniform way of generating code uniformly across various hardware MCU platforms (STM, NXP, Silabs, Infenion, ...), for IoT specifically.
I see that in the shared lib inside the VMcore building block, the platform-defined code is done at the os level and that there is no hardware-specific code.
What does it mean for porting current WAMR implementation on, for example, an ARM Cortex-M33 chip? What would be the required step for that? I have seen this tutorial, about creating a new platform but, it is os-level not hardware level.
So to not get confused I prefer asking here first: before porting the WAMR onto new MCUs, is there any required modification on the code itself to support other hardware platforms not tested (stated above)? As long as I use the same OSs that are supported (Zephyr or FreeRTOS for example).
TLDR: Is any more work on the WAMR codebase needed, other than the one described here and here, for running WAMR hello-world with an example STM32 with Zephyr-OS or FreeRTOS?