• Dear
    This is my first post on this forum! I'm also new to Espruino, but it looks cool!
    I got a question about the integration and use of Espruino in third party software and hardware.
    Some time ago I made some hardware to read parameters from sensors and controlling actuators. This works stable, but sometimes I need to change some parameters and I want to stop with building my whole project again for changing sometimes 1 parameter...
    So, is it possible to use Espruino to do this job? I use a standard Free-RTOS OS with GCC for Arm?
    If yes,
    • How to integrate Espruino in Free-RTOS environment?
    • What are the possible interfaces to adapt de JavaScript code?
    • Is it possible to view the already running code?
    • How easy is it to add additional functions for my specific hardware?


  • Fri 2019.08.23

    Hello @user102674 and welcome to the world of Espruino!

    'Is it possible to view the already running code?

    From the main page:
    Menu >> Documentation >> Quick Start
    Menu >> Documentation >> Videos

    WebIDE video interaction around ~01:58

    which links to


    I believe you will find the environment meets your criteria. Watch the video and lets see if there are more get started questions you may have.

  • Integration boils down to 'who owns the pins and the other resources (timers, interrupts)...'. Espruino is usually standalone and owns it all in a very integrated way between hardware side and application / programming side... Similar is RTOS: it provides interfaces to the resources and the application has to use them... Mapping/connecting this underlaying resources into Espruino becomes an issue for time sensitive tasks, and both environments do not always share the same solution approach.

  • I'm afraid that right now, while Espruino could be embedded in another OS, it's not actually that easy.

    Just one of those things - sadly running on other hardware makes me no money, so unless someone will pay for the work to tweak Espruino to make it easy I have to focus my efforts on doing things that make more people buy Espruino boards.

    Having said that, if you're not bothered about having actual JS (just something that looks like it) then you could look at TinyJS (or the various forks like 42, which is better). This is basically the precursor to Espruino and is a single-file JS(ish) interpreter that you should be able to embed and extend pretty easily.

    There are a few other things you could look at too - Duktape, JerryScript, or V7 could be a good bet
    (it's another single-file JS interpreter, but it's more efficient and is actual JS). Then there are the non-JS engines like Lua that could be worth a look.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Free-RTOS, Espruino integration in own hard- and soft-ware.

Posted by Avatar for user102674 @user102674