Page 1 of 1

Application for Chibios

Posted: Tue Jan 12, 2016 6:18 pm
by Alexte
Hello! We create a hobby project of a smart home.
It is often necessary to change the data and the logic of the program.
Using the CAN bus with a very low speed.
Question. Is it possible to implement the frequently updated application logic as the OS by placing it in a predetermined area of memory, and only reflash it. How to do it? Are there examples of implementation?

ch_appl.PNG
ch_appl.PNG (21.96 KiB) Viewed 2325 times

Re: Application for Chibios

Posted: Tue Jan 12, 2016 9:29 pm
by Giovanni
Hi,

There would be several possible solutions but none really simple, ChibiOS is not meant to be a stand-alone operating system (something I could reconsider in the future).

On top of my mind:
1) A Jump table in a fixed location jumping to the APIs you need. Then an application-side header that remaps function-like APIs to absolute jumps.
2) A scripting engine linked with ChibiOS, the application would be a script/applet: javascript, python, java, lua. There have been several implementations over ChibiOS.

It mainly depends on your requirements.

Giovanni

Re: Application for Chibios

Posted: Wed Jan 13, 2016 11:07 pm
by Alexte
Thank you, Giovanni. I will try Viper...