MPC5668G: How to execute a function in startup from RAM

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

MPC5668G: How to execute a function in startup from RAM

Jump to solution
766 Views
nishan
Contributor I

Currently all the software(boot, application ) is running from Flash. As part of errata implementation, we want to execute one function in startup(boot) from RAM. What are the changes or steps to be considered for this? This case is when the Flash is corrupted when woke-up from sleep.

Labels (1)
0 Kudos
Reply
1 Solution
567 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

in attachment is example, how to place function to RAM (look at the .lcf). In main.c is shown, which pragma you have to use before you can call the function.

Regards,

Martin

View solution in original post

3 Replies
567 Views
nishan
Contributor I

Kindly provide your suggestions.

0 Kudos
Reply
568 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

in attachment is example, how to place function to RAM (look at the .lcf). In main.c is shown, which pragma you have to use before you can call the function.

Regards,

Martin

567 Views
nishan
Contributor I

Thanks a lot for the detailed Reply. It was really helpful.

0 Kudos
Reply