Hi Luis,
What is the following two lines for?
AREA |.text|, CODE, READONLY
EXPORT JumpToUserApplication
I have just tested the JumpToUserApplication function shown above. Seems it jumps to the desired address, but the application whose vector table starts at the address to wich it jumps doesn't start.
I have the following .lcf files configuration
BOOT.lcf
m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001E0
m_text (RX) : ORIGIN = 0x00000800, LENGTH = 0x00004000-0x00000800
m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00010000
m_cfmprotrom (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
APLICATION.lcf
m_cfmprotrom (RX) : ORIGIN = 0x00004400, LENGTH = 0x00000010
m_text (RX) : ORIGIN = 0x00004800, LENGTH = 0x00040000-0x00000800
m_interrupts (RX) : ORIGIN = 0x00004000, LENGTH = 0x000001E0
vectorram (RWX): ORIGIN = 0x1FFF8000, LENGTH = 0x000001E0
m_data (RW) : ORIGIN = 0x1FFF81E0, LENGTH = 0x00010000-0x000001E0
What i do is; First i program the K60 with the application, then i program the K60 with the boot. When loading the boot, obviously i don't erase the memory in wich the application is.
Any help will be appreciated.
Thanks and best regards.