This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SROM Sections

I have an XC167 application that needs to place the code from two modules into the SROM class in order to copy code from Flash to the internal program memory. I can use the following in the User Sections of the Linker but this will not adapt automatically to the growth of the first module.

?PR?ABC%ABC_CODE(0xe00000)[],
?PR?DEF%DEF_CODE(0xe00400)[]

Is there a way of specifying that the sections are placed immediately after one another?

Parents
  • Thanks Stefan but LINK_ONLY is not checked.
    Your example uses a data section. Have you tried using a code section, placing it in the SROM class and then copy the code to the RAM area as in Keil App Note 138? My code works correctly if the exec_address is included in the specification for each section I want placed in the SROM class but fails with the formerly mentioned errors when I remove the exec_address from all but the first User Section.

Reply
  • Thanks Stefan but LINK_ONLY is not checked.
    Your example uses a data section. Have you tried using a code section, placing it in the SROM class and then copy the code to the RAM area as in Keil App Note 138? My code works correctly if the exec_address is included in the specification for each section I want placed in the SROM class but fails with the formerly mentioned errors when I remove the exec_address from all but the first User Section.

Children