Since mikeller merged #1227, flashing via DFU mode seems to be broken. This happens:
Please be carefull, because I have a "very special" setup: Unfortunately no updated windows configurators are available. So I use a installed 10.4 windows package and cherry pick (manually merge) new files from the code base into the configurators folders.
This worked fine for the last months with numerous firmware/configurator versions and a handfull of FC types. But the last merge broke the DFU flashing. #1227 added DFU device types and may have touched a delicate part. This is why I like to address this to @jflyper ...
All that may be my fault but the changes done in #1227 look like a possible trap (without knowing what the bug may be).
@AirBreak69: Instead of cherry-picking, try building from latest on master, and see if this fixes it - it's well possible that these changes will break when built against an older version of the NW.js toolkit.
@mikeller: Was a lot of work to get it run. Had to deal with path extensions and overcome problems like this:
https://github.com/gulpjs/gulp/issues/2246
Finally I got the build running and started the fresh configurator.
But I have to disappoint you - the problem still exists!
Made a cross check against https://github.com/betaflight/betaflight-configurator/releases/download/10.4.0/betaflight-configurator-installer_10.4.0_win32.exe to discover potential PC problems: The old offcial version can flash the FC.
For others, who want to do the same:
@AirBreak69: Interesting. I never tested the change on Windows, but I know it works on linux and assume it works on Mac (@jflyper uses Mac). What version of Windows are you using?
I'll try to replicate on Windows later on.
@mikeller: I use - like most of the helpless Microsoft addicts - latest and greatest Win10, x64, October build 1809.
@AirBreak69: Sorry to say, but I was not able to reproduce your problem, npm start runs configurator and flashes firmware just fine for me on latest master under Windows.
gulp release --win32 but it ends in an "internalbinding" error. I had to install npm install [email protected]
This is fishy - gulp release --win32 runs just fine for me under Windows. Could it be that there is a problem with the node modules and NW toolkit artefacts in your repository directory? Try cloning into a fresh directory, then running npm install and gulp release --win32 and see if that works.
After that, can you run npm start, open a debug console, and see what error is thrown when trying to flash firmware?
P.S.: The deprecation warnings are normal - welcome to the brave new world of npm package management where we try to build house sized applications out of lego bricks that are maintained by volunteers.
@mikeller: Sorry to read this. I did some more tests, but the problems are still there. Looks a bit "specific to my computer".
I think we should leave this open for a while. Just to see if other users face the same problem.
The "[email protected]" include seems to be needed as a workaround for the 11.x NW toolkit.
@mikeller: Thanks! #1241 fixes it.
@AirBreak69: The interesting thing is that this didn't actually break flashing for me - it still worked but while looking at the console log as part of investigating a different problem I saw that flashing threw an unexpected exception, looked into the code and found / fixed this obvious bug (obvious if you looked at it).
@mikeller: obvious for you...
To be honest: it is still not really flawless. Flashing runs through now, but you cannot connect right after flashing. Connect does only work after flashing if you restart the configurator.
Most helpful comment
@mikeller: Thanks! #1241 fixes it.