AnsweredAssumed Answered

code execution problem in SRAM

Question asked by LEE on Dec 21, 2016
Latest reply on Dec 22, 2016 by Martin Kovar

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.

Outcomes