I'll explain what my overall objective is first..
I would like to be able to store small functions/algorithms in external flash of a BF561 processor. I will then copy these functions into allocated space of main memory and run.
My problems are.
How do I copy a function to a specific memory location? I assume I use malloc to create space then copy the address range.
The hard part is then executing this function. I have complex ideas of creating a function container within the allocated space, then moving the function to a the space within, then i can call the function container. maybe.
I've assumed you cannot actually control the program counter. As that would make things simple, if a little dangerous.
thanks for any help,