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

how keil load position position independent code?

Hi: I'm try debug position independent code in Keil, but found the keil Load command did not support add base address. Question: How to load position independent code into RAM? code like flash algorithm, use these scatter: PRG 0 PI ; Programming Functions { PrgCode +0 ; Code { * (+RO) } PrgData +0 ; Data { * (+RW,+ZI) } } debug ini file: FUNC void Setup (void) { // 0x20000000 + symbol address SP = 0x20002000; // Setup Stack Pointer PC = 0x2000033D; // Setup Program Counter R0 = 0x20001000; R1 = 10; R2 = 0x20001200; R9 = 0x20000474; } load %L incremental 0x20000000 // ??? No load base address Setup(); // Setup for Running Go 0x2000033D