This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Plug in application modules

Hi All,

CPU: STM32F10x cortex-m3.
Keil compiler.

I wonder if anyone can point me in the right direction?

What I need to do is build a system that is made up of a core with modules that will be plugged in at a later point in time. I.E. the core will be compiled and run able, the product will then be configured for it specific variation by placing modules in memory for it to use. The modules will not be dynamic loaded, apart from at initial boot up where these modules will be resolved and hooked in.

The core will consist of the RL-RTX os, some basic house keeping tasks and base functionality that is able to hook into the added modules.

I guess in GNU/linux Id be using insmod or in windows a DLL, SMX by micro devices has dynamic load module facility which I think is a bit more than I need.

Any ideas how to do this?

Regards,
DaveE

Parents
  • There are no stylish solutions for your problem, I am afraid. Maybe you can generate a header file per module, describing (based on the respective .map file) where each function/variable reside. These header files can then be used throughout the program for address resolution.
    If you use a script for header file generation, you can keep your system functional as long as you re-build your the components from scratch when something changes. You must also pay attention to address collisions.

Reply
  • There are no stylish solutions for your problem, I am afraid. Maybe you can generate a header file per module, describing (based on the respective .map file) where each function/variable reside. These header files can then be used throughout the program for address resolution.
    If you use a script for header file generation, you can keep your system functional as long as you re-build your the components from scratch when something changes. You must also pay attention to address collisions.

Children