code execution problem in SRAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

code execution problem in SRAM

543 Views
youngseolee
Contributor III

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.

Labels (1)
0 Kudos
1 Reply

424 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

could you please write me back, which microcontroller you use and also share your project?

Regards,

Martin

0 Kudos