AnsweredAssumed Answered

K60N512: junp from code in Flash to code in RAM

Question asked by Thomas Forck on Nov 27, 2011
Latest reply on Nov 29, 2011 by Thomas Forck


I want to jump from code in flash to code in RAM.

I have changed the Linker Comannd file,so that i have two code segments,

one in Flash and one in RAM:


m_interrupts  (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001E0
m_text        (RX) : ORIGIN = 0x00000800, LENGTH = 0x00080000-0x00000800
m_text2 (RWX) : ORIGIN = 0x1FFF0000, LENGTH = 0x00001000
m_data        (RW) : ORIGIN = 0x1FFF1000, LENGTH = 0x00020000-0x00001000
m_cfmprotrom  (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010



with the Inline assembler I want to set the pc to 1FFF0000.


First I saved the pc in r14(link register).


        MOV r14, pc
        // MOV pc 0x1FFF0000   ???????    I Want to jump to binary code in flash which starts ai address 0x1FFF0000



Does someone know how I can jump from a address which is lower than 0x80000   to address 0x1FFF0000 ?