Does mcp-5748g support Execution in place?

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

Does mcp-5748g support Execution in place?

1,040 Views
niket_shah
Contributor I
0 Kudos
4 Replies

842 Views
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 Kudos

842 Views
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 Kudos

842 Views
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 Kudos

842 Views
niket_shah
Contributor I

Thanks for the quick reply.

0 Kudos