Skip to main content
Visitor II
September 9, 2020
Question

STM32F429 USB problem when Vector Relocated

  • September 9, 2020
  • 3 replies
  • 878 views

Hi all,

I am using STM32F429AG for one of our project. When i use vector table at its default position USB virtual com port works perfectly.

However, when i relocate the Vector table, my windows pc gives error that the USB device is malfunctioning. Other peripherals are working just fine after relocation.

My bootloader is just simple as below;

/**

 * @brief Main program

 * @param None

 * @retval None

 */

int main(void)

{

// Jump to the programme header

ApplicationAddress = 0x08008000;

JumpAddress = *(volatile uint32_t*)(ApplicationAddress+4);

Jump_To_Application = (pFunction) JumpAddress;

/* Initialize user application's stack pointer */

Jump_To_Application();

    

 /* Infinite loop */

 while (1)

 {

 }

}

My USB pins are PB14 and PB15.

Is there anything that i miss here?

    This topic has been closed for replies.

    3 replies

    Super User
    September 9, 2020

    Is SCB_VTOR register set properly?

    JW

    Graduate II
    September 9, 2020

    Probably not setting SCB->VTOR properly in SystemInit(), ST could have used the linker symbol, but didn't...

    SAkta.1Author
    Visitor II
    September 10, 2020

    I have checked the VTOR using debug tool. It seems ok.

    0693W000003REX0QAO.png