Question
Issue with USB DFU, request for direction
Posted on August 15, 2016 at 05:34
Hello all,
I am working on a project where MCU will enter USB DFU mode via a command (STM32L151rd, USB-FS_4.0, 32MHz PLL driven by HSE) without sensing any button press or changing BOOT0 pin. I've configured USB VCP as the default mode. It'll switch role to DFU or MSC (in next USB connectivity) upon a command sending via VCP. DFU/MSC session will continue as long as USB cable is connected (via sensing a GPIO pin connected to USB). PC can recognize all three USB modes. Unfortunately, I am not clear about the register/vector table settings needed for DFU or which .hex file is needed to convert to .dfu and upload. Will this idea work at all for DFU ? Would you please give me some direction for this specific project and help me get out of this problem. Thank you for your kind time.