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

relocating segments

Hello,

I asked a similar question a while ago concerning relocation of library segments that the linker (by default) places in common area.

I have been happily relocating any ?PR? segment (e.g. ?PR?PRINTF?PRINTF)that appeared in the common area into one of my two code banks without any problems, but I read (today) in the BL linker guide that this shouldn't be done- Has anyone any experience of the conditions that this practise would cause problems?

Also, I'm curious to know whether the following would be considered 'safe':
Assuming two code segments ?PR?B0INTT0 and ?PR?TIMER0_INT?B0INTT0 have been located in common area. The actual interrupt function (timer0_int) must stay in common area, but can I move ?PR?B0INTT0 into a different code bank?

Also, does the ?C?LIB_CODE segment have to reside in common area?

Many thanks

David

0