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 件の賞賛
返信