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?
Application for Chibios
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Application for Chibios
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
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