We are working on a custom board, based on XC167CI with external flash AMD 29F400 wired to CS0 and we are using Keil uVision2 V2.38A e ULINK USB. So we have internal memory at 0x400000 and external one at 0xC00000. We have implemented AMD algorithms in FlashDev.c and it works perfectly when we locate all our code in internal or external code. But we need to split our code in internal and external flash using one only project/loc file. So in some modules we rename FCODE, FCONST and HCONST classes in order to locate them in external flash. At thi point uVision2 does not download it correctly (we have traced the commands it send to FlashOS via JTAG). It could seem mVision does not handle correctly LOC file larger than 1 Mbyte (it's not possible to us keep it within 1 Mbyte). Did somebody else experienced problems like this or have found some solution in order to split the loc file between internal and external flash and download it with ULINK ?