to assign an address to a specific function Cpu_identification() is a different question.
user need
1. define a section in prm file
for example
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
... ...
MYROM = READ_ONLY 0x2000 TO 0x25FF;
... ...
END
PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
... ...
CPUIDF_ROM INTO MYROM;
END
in code
#pragma CODE_SEG CPUIDF_ROM
Cpu_identification()
Cpu_identification()
{
//YOUR CODE
}
#pragma CODE_SEG DEFAULT
Thus function Cpu_identification is allocated to address starting from 0x2000. Hope this helps!
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------