Does mcp-5748g support Execution in place?

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

Does mcp-5748g support Execution in place?

2,171 次查看
niket_shah
Contributor I
0 项奖励
回复
4 回复数

1,973 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

technically - FLASH target is running from Flash (in meaning executed in place). Anyway - what is your approach? 

Jiri

0 项奖励
回复

1,973 次查看
niket_shah
Contributor I

I want to make sure that my code is running from flash not from RAM.

When i debug the code with "debug flash" configuration then value of pc(program counter) shows flash region. And when i debug the code with "debug RAM"  configuration then value of pc(program counter) shows RAM region.

So if i want to run the code from flash then i should go with "debug flash". Am i correct?

0 项奖励
回复

1,973 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

You are correct. You can also check addresses in .map file (part of build output) . the RAM target is mainly for debug purposes - you aren't programming FLASH which extends flash endurance. 

Hope it helps. 

Jiri  

0 项奖励
回复

1,973 次查看
niket_shah
Contributor I

Thanks for the quick reply.

0 项奖励
回复