cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Bootloader jump CDC

Gabriel T
Senior

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

2 REPLIES 2
TDK
Guru

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();

If you feel a post has answered your question, please click "Accept as Solution".
Gabriel T
Senior

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