Question
Custom Bootloader - Not able to jump on the specific location on flash
Hi team,
We are working on the custom bootloader on stm32u073RC. not able to jump on the specific location.
#define APPLICATION_PARTITION_1 0x0801D000
void jump_to_application_partition_1(void)
{
/* Disable Interrupts */
__disable_irq();
/* Get the stack pointer and reset vector from the backup application section */
uint32_t app_stack_pointer_1 = *(volatile uint32_t *) APPLICATION_PARTITION_1;
uint32_t app_reset_vector_1 = *(volatile uint32_t *) (APPLICATION_PARTITION_1 + 4);
/* Mapping of the backup application reset vector */
pfunction app_entry_1 = (pfunction) app_reset_vector_1;
/* Setting of the vector table to backup application */
SCB->VTOR = APPLICATION_PARTITION_1;
/* Setting MSP - (Main Stack Pointer) */
__set_MSP(app_stack_pointer_1);
/* Enable Interrupts */
__enable_irq();
/* Jump to backup application */
app_entry_1();
}Thanks,
Shubham
