2020-09-09 10:52 AM
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?
2020-09-09 12:22 PM
Is SCB_VTOR register set properly?
JW
2020-09-09 01:43 PM
Probably not setting SCB->VTOR properly in SystemInit(), ST could have used the linker symbol, but didn't...
2020-09-09 05:26 PM
I have checked the VTOR using debug tool. It seems ok.