Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


External task

Posted by henrique canova on November 8, 2012

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:

int t = a;
do yyy;}

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?



RE: External task

Posted by Richard on November 8, 2012
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.


RE: External task

Posted by maxter on November 14, 2012
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)

[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Meet us at Embedded World. Hall 3A-525.

Hear from Richard Barry at Embedded World. Feb 28, 16:00, Hall 4-428.

Video: Watch James Gosling & Richard Barry at re:Invent, Las Vegas 2017.

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS