davedoors wrote on Thursday, November 04, 2010:
This is not the way FreeRTOS is intended to be used, as I said before normally everything is statically linked, but I’m sure what you want would be possible somehow. I have just seen in the other thread the suggestion of having a jump table to API functions (I think this is how SafeRTOS works when it is fixed in ROM) but that still leaves questions about how you are going to compile the external programs that you want to load in dynamically. Would you compile them as libraries with an entry point that was not called main()? Would you compile them as stand alone applications that do contain a main(). In both cases how would you manage their relocatability, you could not used a fixed linker script.
Another option would be to have a loader module that parsed a binary and fixed up addresses after loading into into the CPU memory space.
How do these things normally work? I think they use a separate loader module but I don’t really know.