Skip to main content
Visitor II
November 4, 2020
Question

Problem with Bootloader jump CDC

  • November 4, 2020
  • 2 replies
  • 720 views

Hi,

My software sends a CDC bootload flag that asks the MCU to do a bootloader jump. The jumps works fine and I have no problem detecting the device change, in "control printers" on my PC (CDC to DFU). But on my collegue's PC his Windows does not see the device change so it doesnt find any DFU device. I have closed the connection before jumping as described in USB CDC doc :

0693W000005AIQMQA4.pngAny ideas to solve the problem ? I would prefer a MCU solution but I could use a software solution

Regards

    This topic has been closed for replies.

    2 replies

    Super User
    November 4, 2020

    I would reset the USB peripheral, wait 1 second, then jump to the bootloader.

    __HAL_RCC_USB_OTG_FS_FORCE_RESET();
    HAL_Delay(1000);
    __HAL_RCC_USB_OTG_FS_RELEASE_RESET();

    Gabriel TAuthor
    Visitor II
    November 5, 2020

    I tested on 5 PC and it worked but still doesnt work on this specific PC, we still have to unplug and plug the USB for Windows to see the change, I think the issue is related to the PC