Application for Chibios

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Alexte
Posts: 27
Joined: Sun Jul 01, 2012 1:24 pm

Application for Chibios

Post 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 2323 times
User avatar
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

Post 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
Alexte
Posts: 27
Joined: Sun Jul 01, 2012 1:24 pm

Re: Application for Chibios

Post by Alexte »

Thank you, Giovanni. I will try Viper...
Post Reply