This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Branch to application from bootloader

Hi, I am using this function to branch to application wo problems on GNU tools:

static void boot_jump(uint32_t lAddress) {
  __asm(
      "LDR SP, [R0]\n"
      "LDR PC, [R0, #4]\n"
  );
}

But compiling in MDK-ARM reports:
bootloader.c(45): error: #20: identifier "SP" is undefined

How to solve this or what method must be used in MDK-ARM to do the same?
I could not find any bootloader example in the Keil pack that comes for STM32F micro.