Tool/software: TI C/C++ Compiler
Hello,
I would like to see if the following scenario is possible with the latest compiler (CCS8 & CC135x EV board)
- We store 2 chunks of binary data on the external (SPI) flash, preferably using a file system, let's call those files DynaTsk1.bin and DynaTsk2.bin.
- Let's assume that the code stored within ' DynaTsk1.bin ' simply prints 'a' , and then delay for 1000 milliseconds in an infinite loop, ' DynaTsk2.bin' does the same only it prints 'b'.
- We create an empty memory region with a fixed start address and size, this region will be assigned by the compiler as a ram function that does not exist a boot time..
- After the board was booted, the code loads DynaTsk1.bin into the ram function address space and start a task with a pointer to this region, we can observe the later 'a' being dumped every second.
- After a while. The code stops this task and overwrites its memory location with the content of DynaTsk2.bin, we should now see the later 'b'.
The purpose of this is obviously to create a mechanism for dynamically loadable tasks.
Could this be done? If so how shall I proceed ?
Thanks,
Eitan.