Hi Léo
You can use the uTasker K64 serial loader (Kboot, USB, UART, SD-Card, Memory Stick, I2C, Ethernet) as reference:
Serial Loader: http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf
It works with KDS, MCUXpresso, Codewarrior, Rowley, IAR, Keil, Green Hills, Atollic, GCC, Visual Studio.
The jump code for the K64 is :
// Allow the jump to a foreign application as if it were a reset (load SP and PC)
//
extern void start_application(unsigned long app_link_location)
{
// cortex-M3/M4/M7 assembler code
asm(" ldr sp, [r0,#0]"); // load the stack pointer value from the program's reset vector
asm(" ldr pc, [r0,#4]"); // load the program counter value from the program's reset vector to cause operation to continue from there
}
and there is a guide to application compatibility in the appendix of its user's guide.
It is free open source on GitHub or there is a supported version for professionals, and operates on virtually all Kinetis parts without any porting requirements.
Regards
Mark
Kinetis: http://www.utasker.com/kinetis.html
Kinetis K64:
- http://www.utasker.com/kinetis/FRDM-K64F.html
- http://www.utasker.com/kinetis/TWR-K64F120M.html
- http://www.utasker.com/kinetis/TEENSY_3.5.html
- http://www.utasker.com/kinetis/Hexiwear-K64F.html