Free-RTOS, Espruino integration in own hard- and soft-ware. #7614
Replies: 1 comment
-
Posted at 2019-08-23 by Robin Fri 2019.08.23 Hello @user102674 and welcome to the world of Espruino!
From the main page:
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. Posted at 2019-08-24 by @allObjects 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. Posted at 2019-08-27 by @gfwilliams 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 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-08-23 by user102674
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?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions