Relocating code from FLASH to RAM, flash used size increases

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

Relocating code from FLASH to RAM, flash used size increases

Jump to solution
837 Views
curtis_robertso
Contributor III

When I follow the steps in the manual for "Relocating code from FLASH to RAM" the ram used size increases as expected but the program flash used size also increases.  This seems contradictory to the goal of moving code from flash to ram.  I can't think of an explanation for this contradiction. 

0 Kudos
Reply
1 Solution
733 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

Only flash can keep code and data when power off. All data and code in RAM will lost when power off. Relocating means some code and data will be copy to RAM to execute when system power on.

Regards

Jing

View solution in original post

0 Kudos
Reply
2 Replies
734 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

Only flash can keep code and data when power off. All data and code in RAM will lost when power off. Relocating means some code and data will be copy to RAM to execute when system power on.

Regards

Jing

0 Kudos
Reply
733 Views
curtis_robertso
Contributor III

Jing that totally slipped my mind, this was very helpful, thank you.

0 Kudos
Reply