code execution problem in SRAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

code execution problem in SRAM

595 次查看
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.

标签 (1)
0 项奖励
回复
1 回复

476 次查看
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 项奖励
回复