2016-12-19 04:35 AM
Hi all,
I am able to jump from my application to DFU Bootloader code and able to update my new firmware image with gpio interrupt, here i need one external interrupt to enter in to DFU for that i am thinking to use the Enter DFU mode button in the Dfuse tool.
So, I enabled the HID class and changed the Product id to DFU id (dfu11), with that i am able to see my Device as a DFU device. Here i want to get the Enter DFU mode/ HID detach command but it is disabled(i.e Greyed out) in the Dfuse tool.
I tried by sending the Report descriptor whatever provided in the document, but no luck.
I am using Stm32l476Z eval board and Dfuse v3.0.5.Can anybody explain me how to get the Enter DFU mode/ HID Detach command from the Dfuse tool.
#hid_detach #dfu #enter-dfu #hid_dfu2016-12-19 09:22 AM
Hi
Gamini.Lakshmi_Lavan
I have moved this thread to the
where someone will be able to help you. If you have any product-related questions please post them here going forward.Thanks
Oli
2016-12-19 09:04 PM
Any suggestions?
2016-12-19 11:14 PM
Hi STOne-32,
Can you please look into this.
2016-12-20 03:07 AM
If I remember well the DFU spec, a device in run mode shall expose a DFU interface.
This means that your device should be a composite ie HID + DFU. Then it will be detected by the DfuSe application and you'll be able to issue a Detach command on the DFU interface
That's the theory :)
2016-12-20 04:57 AM
I saw in some other posts that we can give product id of the DFU to HID class and we can get the Enter DFU button by passing some report descriptors, is it true?
With out DFU class is it possible to get the Enter DFU/HID detach command from the Dfuse tool?
2016-12-20 05:55 AM
My understanding of this is limited, but I seem to recall the VID/PID of a device could be registered with ST, and supported by their tools. I don't recall this being a free service.
I think this is different from the offer to provide a free VID/PID to ST's commercial customers.
2017-01-13 10:25 AM
Hello
Gamini.Lakshmi_Lavan
,You should remove the comment code in Line 347-368, File : DfuSeDemoDlg.cpp, this will active your HID detach.
Please try this update, then re-compile and let me know if the problem still there..// Begin with HID devices // Commented in Version V3.0.3 and Keep it for customer usage if wanted.
/*
ReleaseHIDMemory(); m_Enum.FindHidDevice(&m_HidDevices,&m_HidDevice_Counter); FindMyHIDDevice(); for(i=0;i<int(m_HidDevice_Counter);i++) { PHID_DEVICE pWalk;pWalk = m_HidDevices + m_Tab_Index[i];
if(HidD_GetProductString(pWalk->HidDevice, Product, sizeof(Product))) { for(j=0;j<160;j+=2) Prod += Product[j]; } else Prod='(Unknown HID Device)';String.Format('%s',Prod);
m_CtrlDFUDevices.AddString(String); m_CtrlDevices.AddString(String); Prod = ''; }*/
// Commented in Version V3.0.3 and Keep it for customer usage if wanted.Best Regards
Imen