cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F429 USB problem when Vector Relocated

SAkta.1
Associate

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?

3 REPLIES 3

Is SCB_VTOR register set properly?

JW

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
SAkta.1
Associate

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

0693W000003REX0QAO.png