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

Relocation and string.h functions don't mix?

Hi,
I may be missing something, but I cannot figure out how to solve the problem:

- I have implemented the USB Secondary bootloader on a LPC2366, and, therefore, the main application must be relocated, as well as the interrupt vectors. To do so, I define

_RAM_INTVEC _REMAP _RAM_MODE


for LPC2300.s.

I also define the new start address of the application at 0x2000, and the size 0x3E000.

Everything seems to work fine EXCEPT when I use the library's string functions (strcpy, etc.), which use memory already allocated for global variables.

How can I relocate the string functions' r/w memory?

Thanks,

Jose