ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.68k stars 2.99k forks source link

mbed-os Emulation #10458

Closed maxgerhardt closed 5 years ago

maxgerhardt commented 5 years ago

Description

I'd like to ask whether an simulator/emulator is available for mbed-os. This is with regards to firmware testing. I'm currently researching the possibilities of taking our firmware (built for a STM32L476RG & mbed-os 5.12) and executing it inside an emulator or simulator, in which e.g. extended tests such as memory corruption tests (think: valgrind), can be executed, which would otherwise be hard to catch when the firmware is running on the board directly. What I'm looking for is either be able to compile the firmware (and thus also mbed-os) for x86/x64 or get to know tools which can emulate the microcontroller (ARM Cortex M4F core + peripherals).

For example, FreeRTOS also has a simulator with a port of the hardware-specific part to POSIX/Linux systems.

Issue request type

[X] Question
[ ] Enhancement
[ ] Bug
janjongboom commented 5 years ago

Mbed OS supports fast models to run the firmware in an emulated fashion, which would do what you're looking for.

0xc0170 commented 5 years ago

Mbed OS supports fast models to run the firmware in an emulated fashion, which would do what you're looking for.

@maxgerhardt Does this answer your question?

maxgerhardt commented 5 years ago

@0xc0170 Yes thanks.