External task

Hi, I need to make one project and for it, I need do run an simple code made for an user inside my microcontroloer, I’m thinking  to make this code one task of the RTOS, but I want to know if is possible to run this task from an external memory like eeprom or form the flash memory, for example, the user write an code:
if(xxx){
int t = a;
do yyy;}
do_this(xxx);
this code will be loaded in an memory (I dont know exactly how to do that) and finally the code will be executed like an task is it possible? thanks hcanova

External task

I don’t really understand what your asking, but something in the following might answer your questions. Applications that use FreeRTOS are statically linked into a single binary executable image.  If you want to run code from an external EEPROM, or any other external memory, and code that doesn’t use FreeRTOS runs from that memory, then code that does use FreeRTOS will also run from that memory.  There is nothing magic about a FreeRTOS application, it is just an executable program like any other. Hope that helps. Regards.

External task

To run code from an externally memory is only possible in a few uC. One workaround can be this: 1.- Load the code that resides in the external EEPROM into the uC RAM
2.- Make your PC (Program Counter) to jump to RAM so it runs from there (that is possible in most ARM uC, indeed)