Trouble Jumping to App from Bootloader
The problem with the code is that you are dereferencing your pointers and storing the value rather than the address. That is why you are getting a hard fault because you are trying to run code in an incorrect memory location. Make this change and let me know if you still have issues.
uint32_t sp = ((uint32_t*)APP_BASE_ADDR); uint32_t pc = ((uint32_t*)APP_BASE_ADDR + 1);
Oct 28 2017, 1:55 PM