cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to write data from uart after jumping from custom bootloader

sudhan j
Associate II
Posted on April 07, 2017 at 11:22

Hi,

I'm working with STM32F030k6 and I wrote simple custom boot loader which will jumps to application. 

Below is custom boot loader code.

__disable_irq();

    SCB->VTOR = go_address; //0x08000C00

   // NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0C00);

    if (((*(__IO uint32_t*)go_address) & 0x2FFE0000 ) == 0x20000000)

    {

            /* Jump to user application */

    JumpAddress = *(__IO uint32_t*) (go_address+ 4);

    JumpToApplication = (pFunction) JumpAddress;

        /* Initialize user application's Stack Pointer */

    __set_MSP(*(__IO uint32_t*) go_address);

    JumpToApplication();

    }

Jumping to application is success but when I'm trying to send data over uart board is getting restart. Please help me if some one would have face this issue.

0 REPLIES 0