2012-12-29 11:09 AM
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. Dave2012-12-29 08:19 PM
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.