Hello Marc,
i made an mistake.
I don't want to place my binary code at 0x70000, because its Flash.
I want to place my binary code in RAM Memory. (eg. 0x1fff000-0x1fff800)
I use the default lcf-file.(MK60N512VMD100_flash.lcf)
Do I have to change the Linker Command File ?
I want to have my main code in flash and my selfmade binary code in RAM.
This is what I want:
code_array[0] = 0xE3A00000; // MOV r0, #0
code_array[1] = 0xE2800001; // ADD r0, #1
code_array[2] = 0xE340000A; // CMP r0, #10
code_array[3] = 0x1AFFFFFE;
code_array[4] = 0xE1AEF000; // MOV pc, r14 (return to flash-program)
memcpy((void *)0x1FFF0000, code_array, sizeof(code_array)); // copy binary code in RAM
asm{
MOV r14, pc
MOV pc, #0x1FFF0000
}; //jump to binary code in RAM
Thanks