Skip to content

Bootloader unable to jump to application #3

@khaleel453

Description

@khaleel453

Hi

With your code as reference i successfully built and loaded bootloader and user application binaries for "STM32F411RE" evolution kit.
issue :
Bootloader unable to jump to user application. Below is my goto application function
`static void goto_application(void)
{
printf("Loading Application....\r\n");

void (app_reset_handler)(void) = (void)(((volatile uint32_t) (0x08008000 + 4U)));

__set_MSP((volatile uint32_t) 0x08008000);

// Turn OFF the Green Led to tell the user that Bootloader is not running
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_RESET ); //Green LED OFF
app_reset_handler(); //call the app reset handler
}`
bootloader storage : 0x08000000 to 0x08007800 [30kB]
Application Flash range : 0x08008000 to 0x08018000 [64KB]

Bootloader is going to error handler while running app_reset_handler() function.

Could you please help me out in solving this issue.
Thanks in advance.

Best Regards
khaleel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions