Our project consists of firmware and application, which are stored in different memory--rom & otp. So the firmware part shall not be changed while application can be developed further on. Now for firmware the space for library functions are fixed but we don't know what library is needed for application development. I found all the library functions are linked together under ?C?LIB_CODE. So the question is, how can I link/locate the library into two separate locations, one sits within 0x0000-0x0800 while the other is located above 0x0800? Any help will be appreciated! Otherwise I have to leave some extra space for library in firmware memory which means waste of space.. Regards, Xinyi
"UV erasable memory(it's called OTP in my task spec," Your task spec is using the term incorrectly! OPT = One-Time Programmable; ie cannot be erased. This usually means that the part contains a UV-erasable chip, but is packaged in an opaque material - so it can't be erased. They do this because "standard" opaque plastic packages are far cheaper than the ceramic windowed types needed to let the UV light in and, thereby, allow the chip to be erased.
http://www.keil.com/appnotes/docs/apnt_180.asp