We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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