hi mark,
bootloader jumping code.
void start_application(unsigned long app_link_location)
{
#if !defined KINETIS_KL || defined KINETIS_KE // {67} cortex-M0 assembler code
#if !defined _WINDOWS
asm(" ldr r1, [r0,#0]"); // get the stack pointer value from the program's reset vector
asm(" mov sp, r1"); // copy the value to the stack pointer
asm(" ldr r0, [r0,#4]"); // get the program counter value from the program's reset vector
asm(" blx r0"); // jump to the start address
#endif
#else // cortex-M3/M4 assembler code
#if !defined _WINDOWS
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
#endif
#endif
}
i am passing argument like that
#define UTASKER_APP_START (32 * 1024)
start_application(UTASKER_APP_START);
but inside start_application function "UTASKER_APP_START" value was not used. but i dnt know how its working for less than 512KB.
regards,
sudhakar p