AnsweredAssumed Answered

Running SDK flash routines from RAM

Question asked by Ambarish Hundekar on Apr 4, 2018
Latest reply on Apr 4, 2018 by Ambarish Hundekar

Hello NXP ,

 

Thank you in advance for your help.

 

We are using S32K144 in our project.

 

I have tested the SDK flash driver and successfully erase and write the Flash memory.

I have build the SDK Flash Driver  excluding startup and changed the entry point from reset handler to main in linker file.

 

converted the elf file to hex file.

 

created the one more project and place the hex bytes(flash routines) to array(array is located to same segment which I used the code area for Flash driver routines hex file creation) and try to jump to the start of the array. it is throwing an exception.

 

 

same thing I followed for toggling the LED project by using timer , it is working fine but not flash drivers.

 

Instead of calling LED function inside the main, I call the some other function which has input arguments and create the hex file.

I placed the  HEX values to array and jump, then also it through exception.

 

 

just need to understand the is there any conditions to run the code from RAM?

 

please let us know the solution early as early as possible.

 

 

 

 

Thanks & Regards,

Ambarish.

Outcomes