janjongboom / mbed-simulator

Experimental simulator for Mbed OS 5 applications
Other
175 stars 65 forks source link

Add support for generic external memory #10

Closed cwoodhayes closed 6 years ago

cwoodhayes commented 6 years ago

This would be super helpful for fast development, especially on my team where we have more developers than we have MBEDs. It'd be awesome if there were some generic flash memory component for which you could specify memory size and call writes & reads.

janjongboom commented 6 years ago

@cwoodhayes Like a BlockDevice? Good idea.

cwoodhayes commented 6 years ago

That’d be perfect :)

janjongboom commented 6 years ago

Implemented in the mbed-os-5.9 branch: https://github.com/janjongboom/mbed-simulator/commit/4c79f2f9315b4423fe9f83bd4e96a7eeea3fd375 - compatible with other block devices in Mbed (such as SPIF and SD), but persisting it to local storage. Unfortunately file systems don't work yet against them (due to Emscripten hijacking the file system).

Should make it to master when Mbed OS 5.9 is out.