i try to execute code in SRAM using a function pointer.
My project is implemented as follows:
1. my project is implement as INTERNAL_FLASH mode, and 'function_A' in my project is relocated to a specific address (0x40010000) in SRAM
2. Declare a function pointer that point specifies the specific memory address (0x40010000), and execute it.
When I run my program, my program call 4000 command, then It falls into exception handling handler.
but, My program works fine at a specific memory address (0x40010000) when the program call a 'function_A' normally.
I want to know why this problem is occurred.
Hi,
could you please write me back, which microcontroller you use and also share your project?
Regards,
Martin