cancel
Showing results for 
Search instead for 
Did you mean: 

iap cannot work with usb

ming hu
Associate
Posted on June 04, 2018 at 06:29

mcu: stm32f207VG

I have a bootloader which jumps to another application at 0x8040000, the testing code is

    NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x40000);

    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);

    USBH_Init(&USB_OTG_Core,USB_OTG_FS_CORE_ID,&USB_Host,&USBH_MSC_cb,&USR_Callbacks);

    while(1)

    {

    USBH_Process(&USB_OTG_Core, &USB_Host);

    }

It seems that usb not work, interrupt OTG_FS_IRQHandler is not triggered. but other periph devices work.

If I comment out 

NVIC_SetVectorTable, and don't use bootloader, usb works.

I cannot figure out what's wrong. can anybody give me some advice, and id of official manual to look at.

0 REPLIES 0