purduesigbots / pros-atom

Main plugin for supporting PROS development in Atom
http://atom.io/packages/pros
Mozilla Public License 2.0
11 stars 9 forks source link

Failure on Preparing Bootloader #40

Closed Reichenbachian closed 7 years ago

Reichenbachian commented 7 years ago

Expected Behavior:

The function prepare_bootloader should prepare the bootloader, but it fails every time I've run it. The output is 'Preparing bootloader...failed'

Atom on MacOSX Sierra

jwalk511 commented 7 years ago

Not a fix, but a workaround. Download Java if you don't have it, and run make upload instead of pros make upload. This will directly call GNU make on the PROS makefiles, which will then compile your project and flash it to the cortex using Stephen's Uniflash (which is written in Java). Tests indicate that this is more stable than the Python flasher on macOS, though we aren't sure why.

Reichenbachian commented 7 years ago

The workaround works consistently and well. I'll compare the two implementations and see if I can tell what the problem is. Otherwise, one could just do a system call of make upload when the upload button is pressed.

HotelCalifornia commented 7 years ago

We'd like to avoid forcing users to download more dependencies than are absolutely necessary, so we probably won't change the behavior of the upload button. We do have some flasher improvements in the pipeline over in purduesigbots/pros-cli#27, where I'll look into adding your suggested fix from #39.

edjubuh commented 7 years ago

This should be fixed by purduesigbots/pros-cli@2a991c53

If you're still having issues with pros upload on version 2.5.0 or higher, feel free to reopen this issue.