AnsweredAssumed Answered

MC56F8037 ISSUE WHILE INTEGRATING INTERNAL FLASH CODE TO EXISTING CODE

Question asked by amit singh on Mar 5, 2019
Latest reply on Mar 12, 2019 by xiangjun.rong

HI TEAM,

 

we have been using MC56F8037 for one of projects, that receives a PWM signal based on interrupt and performs some calculation function and produces an output.

  1. we had a requirement to store few parameters into the internal flash of the controller.
  2. we tested successfully the basic flash read-write code separately.
  3. while adding this flash code files (IFsh1.c, IFsh1.h) into our original code and adding its components to linker file (.cmd) the original code stops to work.

( if (IFsh1.c, IFsh1.h) is not added and only changes are made in linker file original code works fine.)

(original and edited linker file (.CMD) files attached)

 

 

I request you to guide me for following:

  1. what might be the reason for this kind of behavior of the code.
  2. How to take some code fragment from memory and copy and execute it inside RAM
  3. How to place a code in a specific memory location inside the controller ( which can be seen in MAP file.)

i want to place (code segments available in IFsh1.c  ) at a specific location ( say 0x5000).

 

 

kindly help.

Outcomes