cancel
Showing results for 
Search instead for 
Did you mean: 

Loading user compiled modules

markmark9121
Associate II
Posted on December 29, 2012 at 20:09

I am looking for a way to have a simple system that runs a multi-thread main program on the processors memory and then has the ability to read a SD card and load user compiled modules into different threads and run them.

Can anyone point me in the basic direction on how to accomplish this?

I know that I need a fatfs and base program with threading, but the part that I don't know about is loading / running compiled modules ( I guess like a DLL ? )

Any help would be appreciated.

Dave
1 REPLY 1
Posted on December 30, 2012 at 05:19

Most ARM compilers generate relocatable object files in ELF, if your not predisposed to creating your own format this perhaps would be a good starting point. Other hex and binary formats output by the linker typically have a fixed base address, which might be too inflexible for your purpose.

Creating a simple ELF loader shouldn't be particularly hard, and the format is well documented.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..