Hi
I have two different Programms in Program memory. One begins with the adress 0x8000000 and other one begins with the adress 0xA0080000.
the execution of the code begins with the adress 0x8000000 and the first program runs correctly.
After that i try to jump with a function pointer to the adress 0xA008000 to run the second program. But as expected the program has crashed.
the code seems like that:
void *ptr = (void *)0xA0080000;
goto *ptr;
(assemble code does the same)
Are there any idea how can solve this problem?
I have two different Programms in Program memory. One begins with the adress 0x8000000 and other one begins with the adress 0xA0080000.
the execution of the code begins with the adress 0x8000000 and the first program runs correctly.
After that i try to jump with a function pointer to the adress 0xA008000 to run the second program. But as expected the program has crashed.
the code seems like that:
void *ptr = (void *)0xA0080000;
goto *ptr;
(assemble code does the same)
Are there any idea how can solve this problem?